Class ClrGenericParameter
A Flame type that wraps an IL generic parameter.
Inheritance
Inherited Members
Namespace: Flame.Clr
Assembly: Flame.Clr.dll
Syntax
public sealed class ClrGenericParameter : IGenericParameter, IType, IGenericMember, IMember
Constructors
| Improve this Doc View SourceClrGenericParameter(GenericParameter, ClrMethodDefinition)
Creates a Flame type definition that wraps around an IL generic parameter.
Declaration
public ClrGenericParameter(GenericParameter definition, ClrMethodDefinition parentMethod)
Parameters
Type | Name | Description |
---|---|---|
Mono.Cecil.GenericParameter | definition | The IL type definition to wrap. |
ClrMethodDefinition | parentMethod | The parent method that defines the generic parameter. |
ClrGenericParameter(GenericParameter, ClrTypeDefinition)
Creates a Flame type definition that wraps around an IL generic parameter.
Declaration
public ClrGenericParameter(GenericParameter definition, ClrTypeDefinition parentType)
Parameters
Type | Name | Description |
---|---|---|
Mono.Cecil.GenericParameter | definition | The IL type definition to wrap. |
ClrTypeDefinition | parentType | The parent type that defines the generic parameter. |
Properties
| Improve this Doc View SourceAssembly
Gets the assembly that directly or indirectly defines this type.
Declaration
public ClrAssembly Assembly { get; }
Property Value
Type | Description |
---|---|
ClrAssembly | The assembly. |
Attributes
Gets the member's attributes.
Declaration
public AttributeMap Attributes { get; }
Property Value
Type | Description |
---|---|
AttributeMap |
BaseTypes
Gets this type's base types. Base types can be either classes or interfaces.
Declaration
public IReadOnlyList<IType> BaseTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IType> | A read-only list of base types. |
Definition
Gets the generic parameter this type is based on.
Declaration
public GenericParameter Definition { get; }
Property Value
Type | Description |
---|---|
Mono.Cecil.GenericParameter | The generic parameter. |
Fields
Gets this type's fields.
Declaration
public IReadOnlyList<IField> Fields { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IField> | A read-only list of fields. |
FullName
Gets the member's full name.
Declaration
public QualifiedName FullName { get; }
Property Value
Type | Description |
---|---|
QualifiedName |
GenericParameters
Gets the list of generic parameters for this generic member.
Declaration
public IReadOnlyList<IGenericParameter> GenericParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IGenericParameter> | The generic parameters. |
Methods
Gets this type's methods.
Declaration
public IReadOnlyList<IMethod> Methods { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IMethod> | A read-only list of methods. |
Name
Gets the member's unqualified name.
Declaration
public UnqualifiedName Name { get; }
Property Value
Type | Description |
---|---|
UnqualifiedName |
NestedTypes
Gets the nested types defined by this type.
Declaration
public IReadOnlyList<IType> NestedTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IType> | A read-only list of nested types. |
Parent
Gets the parent entity that defines and owns this type.
Declaration
public TypeParent Parent { get; }
Property Value
Type | Description |
---|---|
TypeParent | The parent entity. |
ParentMember
Gets the generic member that defines this generic parameter.
Declaration
public IGenericMember ParentMember { get; }
Property Value
Type | Description |
---|---|
IGenericMember |
Properties
Gets this type's properties.
Declaration
public IReadOnlyList<IProperty> Properties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IProperty> | A read-only list of properties. |