Namespace: | Sirenix.Utilities |
Assembly: | Sirenix.Utilities |
public sealed class MemberAliasPropertyInfo : PropertyInfo, ICustomAttributeProvider, _MemberInfo, _PropertyInfo
We aggregate the PropertyInfo associated with this member and return a mangled form of the name.
public MemberAliasPropertyInfo(PropertyInfo prop, string namePrefix)
System.Reflection.PropertyInfo | prop | The property to alias. |
System.String | namePrefix | The name prefix to use. |
public MemberAliasPropertyInfo(PropertyInfo prop, string namePrefix, string separatorString)
System.Reflection.PropertyInfo | prop | The property to alias. |
System.String | namePrefix | The name prefix to use. |
System.String | separatorString | The separator string to use. |
public PropertyInfo AliasedProperty { get; }
public override PropertyAttributes Attributes { get; }
public override bool CanRead { get; }
public override bool CanWrite { get; }
public override Type DeclaringType { get; }
public override int MetadataToken { get; }
public override Module Module { get; }
public override string Name { get; }
public override Type PropertyType { get; }
public override Type ReflectedType { get; }
public override MethodInfo[] GetAccessors(bool nonPublic)
System.Boolean | nonPublic | Indicates whether non-public methods should be returned in the MethodInfo array. true if non-public methods are to be included; otherwise, false. |
System.Reflection.MethodInfo[] |
An array of System.Reflection.MethodInfo objects whose elements reflect the get, set, and other accessors of the property reflected by the current instance. If |
public override object[] GetCustomAttributes(bool inherit)
System.Boolean | inherit | True to search this member's inheritance chain to find the attributes; otherwise, false. This parameter is ignored for properties and events; see Remarks. |
System.Object[] | An array that contains all the custom attributes applied to this member, or an array with zero elements if no attributes are defined. |
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System.Type | attributeType | The type of attribute to search for. Only attributes that are assignable to this type are returned. |
System.Boolean | inherit | True to search this member's inheritance chain to find the attributes; otherwise, false. This parameter is ignored for properties and events; see Remarks. |
System.Object[] |
An array of custom attributes applied to this member, or an array with zero elements if no attributes assignable to |
public override MethodInfo GetGetMethod(bool nonPublic)
System.Boolean | nonPublic | Indicates whether a non-public get accessor should be returned. true if a non-public accessor is to be returned; otherwise, false. |
System.Reflection.MethodInfo |
A MethodInfo object representing the get accessor for this property, if |
public override ParameterInfo[] GetIndexParameters()
System.Reflection.ParameterInfo[] | The index parameters of the property. |
public override MethodInfo GetSetMethod(bool nonPublic)
System.Boolean | nonPublic | Indicates whether the accessor should be returned if it is non-public. true if a non-public accessor is to be returned; otherwise, false. |
System.Reflection.MethodInfo |
Value Condition A System.Reflection.MethodInfo object representing the Set method for this property. The set accessor is public.-or- |
public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
System.Object | obj | The object to invoke the getter on. |
System.Reflection.BindingFlags | invokeAttr | The System.Reflection.BindingFlags to invoke with. |
System.Reflection.Binder | binder | The binder to use. |
System.Object[] | index | The indices to use. |
System.Globalization.CultureInfo | culture | The culture to use. |
System.Object | The value of the property on the given instance. |
public override bool IsDefined(Type attributeType, bool inherit)
System.Type | attributeType | The type of custom attribute to search for. The search includes derived types. |
System.Boolean | inherit | True to search this member's inheritance chain to find the attributes; otherwise, false. This parameter is ignored for properties and events; see Remarks. |
System.Boolean |
True if one or more instances of |
public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture)
System.Object | obj | The object to set the value on. |
System.Object | value | The value to set. |
System.Reflection.BindingFlags | invokeAttr | The System.Reflection.BindingFlags to invoke with. |
System.Reflection.Binder | binder | The binder to use. |
System.Object[] | index | The indices to use. |
System.Globalization.CultureInfo | culture | The culture to use. |