gemfire::Serializableobject (using the provided wrapper class constructor).
This class is to enable interopibility between the managed and unmanaged worlds when registering types. In the managed world a user would register a managed type by providing a factory delegate returning an object of that type. However, the native implementation requires a factory function that returns an object implementing
gemfire::Serializable. Normally this would not be possible since we require to dynamically generate a new function for a given delegate.
Fortunately in the managed world the delegates contain an implicit 'this' pointer. Thus we can have a universal delegate that contains the given managed delegate (in the 'this' pointer) and returns the native
gemfire::Serializable object. Additionally marshalling services provide
Marshal.GetFunctionPointerForDelegate which gives a function pointer for a delegate which completes the conversion.
Public Member Functions
|DelegateWrapperGeneric (TypeFactoryMethodGeneric^ typeDelegate)|
|gemfire::Serializable *||NativeDelegateGeneric ()|
Constructor to wrap the given managed delegate.
Returns the native
gemfire::Serializable object by invoking the managed delegate provided in the constructor.
gemfire::Serializableobject after invoking the managed delegate and wrapping inside a