Class ArrayBaseTypeSignature
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Represents a type signature representing an array.
public abstract class ArrayBaseTypeSignature : TypeSpecificationSignature, ITypeDescriptor, IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable
- Inheritance
-
ArrayBaseTypeSignature
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ArrayBaseTypeSignature(TypeSignature)
Initializes an array type signature.
protected ArrayBaseTypeSignature(TypeSignature baseType)
Parameters
baseType
TypeSignatureThe element type of the array.
Properties
IsValueType
Gets a value indicating whether instances of this type are passed on by value or by reference.
public override bool IsValueType { get; }
Property Value
Rank
Gets the number of dimensions this array defines.
public abstract int Rank { get; }
Property Value
Methods
GetDimensions()
Obtains the dimensions this array defines.
public abstract IEnumerable<ArrayDimension> GetDimensions()
Returns
- IEnumerable<ArrayDimension>
The dimensions.
IsDirectlyCompatibleWith(TypeSignature, SignatureComparer)
Determines whether the current type is directly compatible with the provided type.
protected override bool IsDirectlyCompatibleWith(TypeSignature other, SignatureComparer comparer)
Parameters
other
TypeSignatureThe other type.
comparer
SignatureComparerThe comparer to use for comparing type signatures.
Returns
- bool
true
if the types are directly compatible,false
otherwise.
Remarks
Type compatibility is determined according to the rules in ECMA-335 I.8.7.1., excluding the transitivity rule.