Skip to main content

ClassSerializationHelper.MemberHandler<T>

A delegate in Root.Township, the global namespace.

Handler that builds the stream read and write actions for one reflected field or property, given its type and getter and setter delegates. Used when preparing reflection-based save serializers.

Constructors​

MemberWhat it is
MemberHandler(object object, IntPtr method)Made by the compiler when you assign a method to this delegate; you don't call it directly.

Methods​

MemberWhat it is
virtual IAsyncResult BeginInvoke(Type type, Delegate get, Delegate set, ref Action<T, Stream, ChunkVersioning> syncWrite, ref Action<T, Stream, ChunkVersioning> syncRead, AsyncCallback callback, object object)Starts the call on another thread; not supported in Unity, so use Invoke.
virtual void EndInvoke(ref Action<T, Stream, ChunkVersioning> syncWrite, ref Action<T, Stream, ChunkVersioning> syncRead, IAsyncResult result)Waits for a call started with BeginInvoke; not supported in Unity.
virtual void Invoke(Type type, Delegate get, Delegate set, ref Action<T, Stream, ChunkVersioning> syncWrite, ref Action<T, Stream, ChunkVersioning> syncRead)Calls every method on this delegate with these arguments.

Used in​

Members of other types that take, return or hold a MemberHandler&lt;T>: