ProtocolAttribute.WrapperType Property


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


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).

Applies to