Class ClrFieldDefinition
A CLR field definition.
Inheritance
Inherited Members
Namespace: Flame.Clr
Assembly: Flame.Clr.dll
Syntax
public sealed class ClrFieldDefinition : IField, ITypeMember, IMember
Constructors
| Improve this Doc View SourceClrFieldDefinition(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. |
definition | The IL field definition to wrap. |
Clr |
parentType | The parent type that defines the field wrapper. |
Properties
| Improve this Doc View SourceAttributes
Gets the member's attributes.
Declaration
public AttributeMap Attributes { get; }
Property Value
Type | Description |
---|---|
Attribute |
Definition
Gets the IL field definition wrapped by this Flame field definition.
Declaration
public FieldDefinition Definition { get; }
Property Value
Type | Description |
---|---|
Mono. |
An IL field definition. |
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. |
FullName
Gets the member's full name.
Declaration
public QualifiedName FullName { get; }
Property Value
Type | Description |
---|---|
Qualified |
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. |
|
Name
Gets the member's unqualified name.
Declaration
public UnqualifiedName Name { get; }
Property Value
Type | Description |
---|---|
Unqualified |
ParentType
Gets this field definition's parent type.
Declaration
public ClrTypeDefinition ParentType { get; }
Property Value
Type | Description |
---|---|
Clr |
The parent type of this field definition. |
Explicit Interface Implementations
| Improve this Doc View SourceITypeMember.ParentType
Gets the type that defines this member, if any.
Declaration
IType ITypeMember.ParentType { get; }
Returns
Type | Description |
---|---|
IType | The parent type. |