ProtocolAttribute.WrapperType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The type of a specific managed type that can be used to wrap an instane of this protocol.
public Type WrapperType { get; set; }
member this.WrapperType : Type with get, set
Property Value
Remarks
Objective-C protocols are bound as interfaces in managed code, but sometimes a class is needed (in certain scenarios our Objective-C-managed bridge have the pointer to an instance of a native object and we only know that it implements a particular protocol; in that case we might need a managed type that can wrap this instance, because the actual type of the object may not formally implement the interface).