Version 3.0.1.0

MemberAliasPropertyInfo class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public sealed class MemberAliasPropertyInfo : PropertyInfo, ICustomAttributeProvider, _MemberInfo, _PropertyInfo
Inheritance
  • System.Object
  • System.Reflection.MemberInfo
  • System.Reflection.PropertyInfo
  • MemberAliasPropertyInfo

Constructors

MemberAliasPropertyInfo(PropertyInfo, String)
public MemberAliasPropertyInfo(PropertyInfo prop, string namePrefix)
Parameters
System.Reflection.PropertyInfo prop

System.String namePrefix

MemberAliasPropertyInfo(PropertyInfo, String, String)
public MemberAliasPropertyInfo(PropertyInfo prop, string namePrefix, string separatorString)
Parameters
System.Reflection.PropertyInfo prop

System.String namePrefix

System.String separatorString

Properties

AliasedProperty
public PropertyInfo AliasedProperty { get; }
Attributes
public override PropertyAttributes Attributes { get; }
CanRead
public override bool CanRead { get; }
CanWrite
public override bool CanWrite { get; }
DeclaringType
public override Type DeclaringType { get; }
MetadataToken
public override int MetadataToken { get; }
Module
public override Module Module { get; }
Name
public override string Name { get; }
PropertyType
public override Type PropertyType { get; }
ReflectedType
public override Type ReflectedType { get; }

Methods

GetAccessors(Boolean)
public override MethodInfo[] GetAccessors(bool nonPublic)
Parameters
System.Boolean nonPublic

Returns
System.Reflection.MethodInfo[]

GetCustomAttributes(Boolean)
public override object[] GetCustomAttributes(bool inherit)
Parameters
System.Boolean inherit

Returns
System.Object[]

GetCustomAttributes(Type, Boolean)
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
Parameters
System.Type attributeType

System.Boolean inherit

Returns
System.Object[]

GetGetMethod(Boolean)
public override MethodInfo GetGetMethod(bool nonPublic)
Parameters
System.Boolean nonPublic

Returns
System.Reflection.MethodInfo

GetIndexParameters()
public override ParameterInfo[] GetIndexParameters()
Returns
System.Reflection.ParameterInfo[]

GetSetMethod(Boolean)
public override MethodInfo GetSetMethod(bool nonPublic)
Parameters
System.Boolean nonPublic

Returns
System.Reflection.MethodInfo

GetValue(Object, BindingFlags, Binder, Object[], CultureInfo)
public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
Parameters
System.Object obj

System.Reflection.BindingFlags invokeAttr

System.Reflection.Binder binder

System.Object[] index

System.Globalization.CultureInfo culture

Returns
System.Object

IsDefined(Type, Boolean)
public override bool IsDefined(Type attributeType, bool inherit)
Parameters
System.Type attributeType

System.Boolean inherit

Returns
System.Boolean

SetValue(Object, Object, BindingFlags, Binder, Object[], CultureInfo)
public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
Parameters
System.Object obj

System.Object value

System.Reflection.BindingFlags invokeAttr

System.Reflection.Binder binder

System.Object[] index

System.Globalization.CultureInfo culture

Extension Methods