Class ClrPropertyDefinition
A Flame property that wraps an IL property definition.
Inheritance
Inherited Members
Namespace: Flame.Clr
Assembly: Flame.Clr.dll
Syntax
public sealed class ClrPropertyDefinition : IProperty, ITypeMember, IMember
Constructors
| Improve this Doc View SourceClrPropertyDefinition(PropertyDefinition, ClrTypeDefinition)
Creates a wrapper around an IL property definition.
Declaration
public ClrPropertyDefinition(PropertyDefinition definition, ClrTypeDefinition parentType)
Parameters
Type | Name | Description |
---|---|---|
Mono.Cecil.PropertyDefinition | definition | The definition to wrap in a Flame property. |
ClrTypeDefinition | parentType | The definition's declaring type. |
Properties
| Improve this Doc View SourceAccessors
Gets a list of all accessors defined by this property.
Declaration
public IReadOnlyList<ClrAccessorDefinition> Accessors { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<ClrAccessorDefinition> | All accessors defined by this property. |
Attributes
Gets the member's attributes.
Declaration
public AttributeMap Attributes { get; }
Property Value
Type | Description |
---|---|
AttributeMap |
Definition
Gets the IL property definition wrapped by this Flame property.
Declaration
public PropertyDefinition Definition { get; }
Property Value
Type | Description |
---|---|
Mono.Cecil.PropertyDefinition | An IL property definition. |
FullName
Gets the member's full name.
Declaration
public QualifiedName FullName { get; }
Property Value
Type | Description |
---|---|
QualifiedName |
IndexerParameters
Gets this property's indexer parameters, i.e., an additional list of parameters that each accessor takes.
Declaration
public IReadOnlyList<Parameter> IndexerParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Parameter> | The indexer parameters. |
Name
Gets the member's unqualified name.
Declaration
public UnqualifiedName Name { get; }
Property Value
Type | Description |
---|---|
UnqualifiedName |
ParentType
Gets the type that defines this property.
Declaration
public ClrTypeDefinition ParentType { get; }
Property Value
Type | Description |
---|---|
ClrTypeDefinition | The type that defines this property. |
PropertyType
Gets this property's type.
Declaration
public IType PropertyType { get; }
Property Value
Type | Description |
---|---|
IType | The property's type. |
Explicit Interface Implementations
| Improve this Doc View SourceIProperty.Accessors
Gets this property's accessors. Each property can have at most one accessor any given kind.
Declaration
IReadOnlyList<IAccessor> IProperty.Accessors { get; }
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IAccessor> | A read-only list of accessors. |
ITypeMember.ParentType
Gets the type that defines this member, if any.
Declaration
IType ITypeMember.ParentType { get; }
Returns
Type | Description |
---|---|
IType | The parent type. |