Table of Contents

Delegate MigrationFunc<TOld, TNew>

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Strongly-typed migration function that transforms a component from one revision to another. Both types must be unmanaged structs with [Component] attributes sharing the same Name but different Revisions.

public delegate void MigrationFunc<TOld, TNew>(ref TOld oldComponent, out TNew newComponent) where TOld : unmanaged where TNew : unmanaged

Parameters

oldComponent TOld
Strongly-typed migration function that transforms a component from one revision to another. Both types must be unmanaged structs with [Component] attributes sharing the same Name but different Revisions.
newComponent TNew
Strongly-typed migration function that transforms a component from one revision to another. Both types must be unmanaged structs with [Component] attributes sharing the same Name but different Revisions.

Type Parameters

TOld
TNew

Constructors

MigrationFunc(object, nint)

public MigrationFunc(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(ref TOld, out TNew, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(ref TOld oldComponent, out TNew newComponent, AsyncCallback callback, object @object)

Parameters

oldComponent TOld
newComponent TNew
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(ref TOld, out TNew, IAsyncResult)

public virtual void EndInvoke(ref TOld oldComponent, out TNew newComponent, IAsyncResult result)

Parameters

oldComponent TOld
newComponent TNew
result IAsyncResult

Invoke(ref TOld, out TNew)

public virtual void Invoke(ref TOld oldComponent, out TNew newComponent)

Parameters

oldComponent TOld
newComponent TNew