Click or drag to resize

TypeRefCreate Method (TypeReference, Boolean, ChildListExpression, ListInt32, Int32, Boolean)

Construct a TypeRef from a TypeReference. This factory method handles TypeDefinitions, GenericParameters (returning an OpenTypeParameterRef), expression trees (returning an ExpressionTreeRef), TypeReferences (resolving them to a TypeDefinition), or arrays of any of those. For a known TypeDefinition, you may use a 'new TypeRef()' constructor for efficiency.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public static TypeRefBase Create(
	TypeReference typeReference,
	bool isFirstOnLine = false,
	ChildList<Expression> typeArguments = null,
	List<int> arrayRanks = null,
	int pointerCount = 0,
	bool dontUseKeyword = false
)

Parameters

typeReference
Type: Mono.CecilTypeReference
isFirstOnLine (Optional)
Type: SystemBoolean
typeArguments (Optional)
Type: Nova.CodeDOMChildListExpression
arrayRanks (Optional)
Type: System.Collections.GenericListInt32
pointerCount (Optional)
Type: SystemInt32
dontUseKeyword (Optional)
Type: SystemBoolean

Return Value

Type: TypeRefBase
The created TypeRef or derived type, or an UnresolvedRef if the TypeReference couldn't be resolved.
See Also