Click or drag to resize

TypeReference.TryGetReferencedType Method

Gets type that this TypeReference references, if any.

Namespace: Ookii.Jumbo
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public bool TryGetReferencedType(
	out Type type
)

Parameters

type  Type
When this method returns true, contains the type referenced by this instance.

Return Value

Boolean
true if this instance references a type and it was resolved; false if this instance did not reference a type (the TypeName property is null.
Exceptions
ExceptionCondition
InvalidOperationException Resolving type references is disabled.
Remarks

This method still throws an exception if the ResolveTypes property is false, or if the type specified by the TypeName property could not be resolved.

See Also