Search Results for

    Show / Hide Table of Contents

    Class ClrFieldDefinition

    A CLR field definition.

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

    Constructors

    | Edit this page 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
    FieldDefinition definition

    The IL field definition to wrap.

    ClrTypeDefinition parentType

    The parent type that defines the field wrapper.

    Properties

    | Edit this page View Source

    Attributes

    Gets the member's attributes.

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

    Definition

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

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

    An IL field definition.

    | Edit this page 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.

    | Edit this page View Source

    FullName

    Gets the member's full name.

    Declaration
    public QualifiedName FullName { get; }
    Property Value
    Type Description
    QualifiedName
    | Edit this page 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
    bool

    true if this field is static; otherwise, false.

    | Edit this page View Source

    Name

    Gets the member's unqualified name.

    Declaration
    public UnqualifiedName Name { get; }
    Property Value
    Type Description
    UnqualifiedName
    | Edit this page 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.

    Implements

    IField
    ITypeMember
    IMember

    Extension Methods

    TypeExtensions.GetRecursiveGenericDeclaration(IField)
    AccessModifierAttribute.GetAccessModifier(IMember)
    TypeExtensions.GetDefiningAssemblyOrNull(ITypeMember)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX