Returns an instance that implements the given type or null.

Namespace: yWorks.Support
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
[CanBeNullAttribute] Object Lookup( Type type )
Visual Basic
<CanBeNullAttribute> _ Function Lookup ( _ type As Type _ ) As Object

Parameters

type
Type: System..::..Type
the type for which an instance shall be returned

Return Value

an instance that is assignable to type or null

Remarks

Typically, this method will be called in order to obtain a different view or aspect of the current instance. This is quite similar to casting or using a super type or interface of this instance, but is not limited to inheritance or compile time constraints. An instance implementing this method is not required to return non-null implementations for the types, nor does it have to return the same instance any time. Also it depends on the type and context whether the instance returned stays up to date or needs to be reobtained for subsequent use.

See Also