MemberAliasFieldInfo

Provides a methods of representing imaginary fields which are unique to serialization.

We aggregate the FieldInfo associated with this member and return a mangled form of the name.

namespace Sirenix.Utilities
{
public sealed class MemberAliasFieldInfo : System.Reflection.FieldInfo
}

Requirements

Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

See Also

  • FieldInfo

Static Fields

Return Type Definition Description
string FAKE_NAME_SEPARATOR_STRING The default fake name separator string.

Constructors

Definition Description
MemberAliasFieldInfo(FieldInfo, string) Initializes a new instance of the MemberAliasFieldInfo class.
MemberAliasFieldInfo(FieldInfo, string, string) Initializes a new instance of the MemberAliasFieldInfo class.

Properties

Return Type Definition Description
FieldInfo AliasedField Gets the aliased field.
FieldAttributes Attributes Gets the attributes.
Type DeclaringType Gets the class that declares this member.
RuntimeFieldHandle FieldHandle Gets a RuntimeFieldHandle, which is a handle to the internal metadata representation of a field.
Type FieldType Gets the type of the field.
int MetadataToken Gets a value that identifies a metadata element.
Module Module Gets the module in which the type that declares the member represented by the current MemberInfo is defined.
string Name Gets the name of the current member.
Type ReflectedType Gets the class object that was used to obtain this instance of MemberInfo.

Methods

Return Type Definition Description
Object[] GetCustomAttributes(bool) When overridden in a derived class, returns an array of all custom attributes applied to this member.
Object[] GetCustomAttributes(Type, bool) When overridden in a derived class, returns an array of custom attributes applied to this member and identified by Type.
Object GetValue(Object) Gets the value of the field.
bool IsDefined(Type, bool) When overridden in a derived class, indicates whether one or more attributes of the specified type or of its derived types is applied to this member.
void SetValue(Object, Object, BindingFlags, Binder, CultureInfo) When overridden in a derived class, sets the value of the field supported by the given object.