Casts the interface to an interface of another type.
Namespace:
SmartBear.TestLeft.TestObjects
Assembly:
SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.60.289.11 (14.60.289.11)
Syntax T Cast<T>()
where T : class
Function Cast(Of T As Class) As T
Dim instance As IObject
Dim returnValue As T
returnValue = instance.Cast()
generic<typename T>
where T : ref class
T Cast()
Type Parameters
- T
- The interface that will be implemented in the returned object.
Return Value
Type:
TAn object of the
T interface.
See Also