Namespace: | Sirenix.Utilities |
Assembly: | Sirenix.Utilities |
public sealed class MemberAliasFieldInfo : FieldInfo, ICustomAttributeProvider, _MemberInfo, _FieldInfo
We aggregate the FieldInfo associated with this member and return a mangled form of the name.
public MemberAliasFieldInfo(FieldInfo field, string namePrefix)
System.Reflection.FieldInfo | field | The field to alias. |
System.String | namePrefix | The name prefix to use. |
public MemberAliasFieldInfo(FieldInfo field, string namePrefix, string separatorString)
System.Reflection.FieldInfo | field | The field to alias. |
System.String | namePrefix | The name prefix to use. |
System.String | separatorString | The separator string to use. |
public FieldInfo AliasedField { get; }
public override FieldAttributes Attributes { get; }
public override Type DeclaringType { get; }
public override RuntimeFieldHandle FieldHandle { get; }
public override Type FieldType { get; }
public override int MetadataToken { get; }
public override Module Module { get; }
public override string Name { get; }
public override Type ReflectedType { get; }
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 object GetValue(object obj)
System.Object | obj | The object instance to get the value from. |
System.Object | The value of the field. |
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, CultureInfo culture)
System.Object | obj | The object whose field value will be set. |
System.Object | value | The value to assign to the field. |
System.Reflection.BindingFlags | invokeAttr | A field of Binder that specifies the type of binding that is desired (for example, Binder.CreateInstance or Binder.ExactBinding). |
System.Reflection.Binder | binder | A set of properties that enables the binding, coercion of argument types, and invocation of members through reflection. If |
System.Globalization.CultureInfo | culture | The software preferences of a particular culture. |