Show / Hide Table of Contents

    Class ClrFieldDefinition

    A CLR field definition.

    Inheritance
    System.Object
    ClrFieldDefinition
    Implements
    IField
    ITypeMember
    IMember
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Flame.Clr
    Assembly: Flame.Clr.dll
    Syntax
    public sealed class ClrFieldDefinition : IField, ITypeMember, IMember

    Constructors

    | Improve this Doc View Source

    ClrFieldDefinition(FieldDefinition, ClrTypeDefinition)

    Creates a Flame field definition that wraps around an IL field definition.

    Declaration
    public ClrFieldDefinition(FieldDefinition definition, ClrTypeDefinition parentType)
    Parameters
    Type Name Description
    Mono.Cecil.FieldDefinition definition

    The IL field definition to wrap.

    ClrTypeDefinition parentType

    The parent type that defines the field wrapper.

    Properties

    | Improve this Doc View Source

    Attributes

    Gets the member's attributes.

    Declaration
    public AttributeMap Attributes { get; }
    Property Value
    Type Description
    AttributeMap
    | Improve this Doc View Source

    Definition

    Gets the IL field definition wrapped by this Flame field definition.

    Declaration
    public FieldDefinition Definition { get; }
    Property Value
    Type Description
    Mono.Cecil.FieldDefinition

    An IL field definition.

    | Improve this Doc View Source

    FieldType

    Gets the type of value stored in this field.

    Declaration
    public IType FieldType { get; }
    Property Value
    Type Description
    IType

    The type of value stored in this field.

    | Improve this Doc View Source

    FullName

    Gets the member's full name.

    Declaration
    public QualifiedName FullName { get; }
    Property Value
    Type Description
    QualifiedName
    | Improve this Doc View Source

    IsStatic

    Tells if this field is static. The storage for static fields is shared by the entire application, whereas the storage for instance (i.e., non-static) fields is specific to an instance of a type.

    Declaration
    public bool IsStatic { get; }
    Property Value
    Type Description
    System.Boolean

    true if this field is static; otherwise, false.

    | Improve this Doc View Source

    Name

    Gets the member's unqualified name.

    Declaration
    public UnqualifiedName Name { get; }
    Property Value
    Type Description
    UnqualifiedName
    | Improve this Doc View Source

    ParentType

    Gets this field definition's parent type.

    Declaration
    public ClrTypeDefinition ParentType { get; }
    Property Value
    Type Description
    ClrTypeDefinition

    The parent type of this field definition.

    Explicit Interface Implementations

    | Improve this Doc View Source

    ITypeMember.ParentType

    Gets the type that defines this member, if any.

    Declaration
    IType ITypeMember.ParentType { get; }
    Returns
    Type Description
    IType

    The parent type.

    Implements

    IField
    ITypeMember
    IMember
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX