Class PointerTypeSignature
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Represents a type signature that describes an unmanaged pointer that addresses a chunk of data in memory.
public class PointerTypeSignature : TypeSpecificationSignature, ITypeDescriptor, IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable
- Inheritance
-
PointerTypeSignature
- Implements
- Inherited Members
- Extension Methods
Constructors
PointerTypeSignature(TypeSignature)
Creates a new pointer type signature.
public PointerTypeSignature(TypeSignature baseType)
Parameters
baseTypeTypeSignatureThe type of values the pointer addresses.
Properties
ElementType
Gets the element type of the
public override ElementType ElementType { get; }
Property Value
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
Name
Gets the name of the object.
public override string? Name { get; }
Property Value
Methods
AcceptVisitor<TResult>(ITypeSignatureVisitor<TResult>)
Visit the current type signature using the provided visitor.
public override TResult AcceptVisitor<TResult>(ITypeSignatureVisitor<TResult> visitor)
Parameters
visitorITypeSignatureVisitor<TResult>The visitor to accept.
Returns
- TResult
The result the visitor produced after visiting this type signature.
Type Parameters
TResultThe type of result the visitor produces.
AcceptVisitor<TState, TResult>(ITypeSignatureVisitor<TState, TResult>, TState)
Visit the current type signature using the provided visitor.
public override TResult AcceptVisitor<TState, TResult>(ITypeSignatureVisitor<TState, TResult> visitor, TState state)
Parameters
visitorITypeSignatureVisitor<TState, TResult>The visitor to accept.
stateTStateAdditional state.
Returns
- TResult
The result the visitor produced after visiting this type signature.
Type Parameters
TStateThe type of additional state.
TResultThe type of result the visitor produces.
IsDirectlyCompatibleWith(TypeSignature, SignatureComparer)
Determines whether the current type is directly compatible with the provided type.
protected override bool IsDirectlyCompatibleWith(TypeSignature other, SignatureComparer comparer)
Parameters
otherTypeSignatureThe other type.
comparerSignatureComparerThe comparer to use for comparing type signatures.
Returns
- bool
trueif the types are directly compatible,falseotherwise.
Remarks
Type compatibility is determined according to the rules in ECMA-335 I.8.7.1., excluding the transitivity rule.