MonobjcMonobjc Documented Class Library
CastTo<(Of <(<'T>)>)> Method
NamespacesMonobjcIManagedWrapperCastTo<(Of <<'(T>)>>)()()()()
Cast the current instance to the given type. The cast is dynamically tested for safety.
Declaration Syntax
C#Visual BasicVisual C++
T CastTo<T>()
where T : class, IManagedWrapper
Function CastTo(Of T As {Class, IManagedWrapper}) As T
generic<typename T>
where T : ref class, IManagedWrapper
T CastTo()
Generic Template Parameters
The type of the instance.
Return Value
The cast instance
ObjectiveCClassCastExceptionIf an error occured during the cast
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc (Module: Monobjc)