Class TypeReference
A type reference is a (potentially unresolved) reference to a Perlang type.
The object is mutable.
Inheritance
System.Object
TypeReference
Assembly: Perlang.Common.dll
Syntax
public class TypeReference : object, ITypeReference
Constructors
|
Improve this Doc
View Source
TypeReference(Token, Boolean)
Initializes a new instance of the TypeReference class, for a given type specifier. The type
specifier can be null, in which case type inference will be attempted.
Declaration
public TypeReference(Token typeSpecifier, bool isArray)
Parameters
Type |
Name |
Description |
Token |
typeSpecifier |
The token providing the type specifier (e.g. 'int' or 'string').
|
System.Boolean |
isArray |
Whether the type is an array or not.
|
|
Improve this Doc
View Source
TypeReference(Type)
Initializes a new instance of the TypeReference class, for a given CLR type.
Declaration
public TypeReference(Type clrType)
Parameters
Type |
Name |
Description |
Type |
clrType |
The CLR type.
|
Properties
|
Improve this Doc
View Source
ClrType
Declaration
public Type? ClrType { get; }
Property Value
Type |
Description |
System.Nullable<Type> |
|
|
Improve this Doc
View Source
CppType
Declaration
public string CppType { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CppWrapInSharedPtr
Declaration
public bool CppWrapInSharedPtr { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsArray
Declaration
public bool IsArray { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
PossiblyWrappedCppType
Declaration
public string PossiblyWrappedCppType { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TypeSpecifier
Declaration
public Token TypeSpecifier { get; }
Property Value
Methods
|
Improve this Doc
View Source
SetClrType(Nullable<Type>)
Declaration
public void SetClrType(Type? value)
Parameters
Type |
Name |
Description |
System.Nullable<Type> |
value |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Implements