Class CodeTypeReference
Inheritance
CodeTypeReference
Syntax
public sealed class CodeTypeReference : CodeElement
Properties
ArrayRanks
Declaration
public List<int> ArrayRanks { get; }
Property Value
Children
Declaration
public override IEnumerable<CodeElement> Children { get; }
Property Value
Overrides
EnclosingType
Declaration
public CodeTypeReference EnclosingType { get; }
Property Value
GenericArguments
Declaration
public List<CodeTypeReference> GenericArguments { get; }
Property Value
IsGlobal
Declaration
public bool IsGlobal { get; }
Property Value
IsNullable
Declaration
public bool IsNullable { get; }
Property Value
Keyword
Declaration
public string Keyword { get; }
Property Value
Mode
Declaration
public CodeTypeReferenceMode Mode { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
Namespace
Declaration
public string Namespace { get; }
Property Value
Methods
Clone()
Declaration
public CodeTypeReference Clone()
Returns
ElementType()
Declaration
public CodeTypeReference ElementType()
Returns
EmitInner(CodeEmitter)
Declaration
protected override void EmitInner(CodeEmitter emitter)
Parameters
Overrides
FromType(Type, Boolean, Boolean)
Declaration
public static CodeTypeReference FromType(Type type, bool explicitGenericParameters = false, bool isGlobal = false)
Parameters
Returns
FromTypeInternal(Type, Boolean, Boolean, Boolean)
Declaration
public static CodeTypeReference FromTypeInternal(Type type, bool generics, bool explicitGenericParameters = false, bool isGlobal = false)
Parameters
Returns
GenericParameter(String, Boolean, IEnumerable<Int32>)
Declaration
public static CodeTypeReference GenericParameter(string name, bool isNullable = false, IEnumerable<int> arrayRanks = null)
Parameters
Returns
GenericParameterPlaceholder()
Declaration
public static CodeTypeReference GenericParameterPlaceholder()
Returns
Implicit()
Declaration
public static CodeTypeReference Implicit()
Returns
MakeGenericType(Type, IEnumerable<CodeTypeReference>)
Declaration
public static CodeTypeReference MakeGenericType(Type type, IEnumerable<CodeTypeReference> genericArguments)
Parameters
Returns
Normal(String, String, CodeTypeReference, Boolean, IEnumerable<CodeTypeReference>, IEnumerable<Int32>, Boolean)
Declaration
public static CodeTypeReference Normal(string namespace, string name, CodeTypeReference enclosingType = null, bool isNullable = false, IEnumerable<CodeTypeReference> genericArguments = null, IEnumerable<int> arrayRanks = null, bool isGlobal = false)
Parameters
Returns
OmitAttribute()
Declaration
public CodeTypeReference OmitAttribute()
Returns
Primitive(String, Boolean, IEnumerable<Int32>)
Declaration
public static CodeTypeReference Primitive(string keyword, bool isNullable = false, IEnumerable<int> arrayRanks = null)
Parameters
Returns
Resolve()
Declaration
Returns
ToFullName()
Declaration
public string ToFullName()
Returns
TryGetFullName(out String)
Declaration
public bool TryGetFullName(out string fullName)
Parameters
Type |
Name |
Description |
String |
fullName |
|
Returns
TryResolve(out Type)
Declaration
public bool TryResolve(out Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Extension Methods