Class ClrArrayType
An IL array type of a particular rank.
Inheritance
Inherited Members
Namespace: Flame.Clr
Assembly: Flame.Clr.dll
Syntax
public sealed class ClrArrayType : IType, IGenericMember, IMember
Properties
| Improve this Doc View SourceAttributes
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. |
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. |
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. |
Rank
Gets the rank of this array type.
Declaration
public int Rank { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The array type's rank. |
Methods
| Improve this Doc View SourceIsArrayType(IType)
Determines if a type is a CLR array type.
Declaration
public static bool IsArrayType(IType type)
Parameters
Type | Name | Description |
---|---|---|
IType | type | A type to examine. |
Returns
Type | Description |
---|---|
System.Boolean |
|
TryGetArrayElementType(IType, out IType)
Gets a CLR array type's element type, provided that a CLR array type was indeed provided.
Declaration
public static bool TryGetArrayElementType(IType arrayType, out IType elementType)
Parameters
Type | Name | Description |
---|---|---|
IType | arrayType | The type to inspect, which might be a CLR array type. |
IType | elementType | An output value that is set to the type of element stored in the array,
provided that |
Returns
Type | Description |
---|---|
System.Boolean |
|
TryGetArrayRank(IType, out Int32)
Gets a CLR array type's rank, provided that a CLR array type was indeed provided.
Declaration
public static bool TryGetArrayRank(IType arrayType, out int rank)
Parameters
Type | Name | Description |
---|---|---|
IType | arrayType | The type to inspect, which might be a CLR array type. |
System.Int32 | rank | An output value that is set to the array type's rank,
provided that |
Returns
Type | Description |
---|---|
System.Boolean |
|