Delegate MigrationFunc<TOld, 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.
public delegate void MigrationFunc<TOld, TNew>(ref TOld oldComponent, out TNew newComponent) where TOld : unmanaged where TNew : unmanaged
Parameters
oldComponentTOld- 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.
newComponentTNew- 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
TOldTNew
Constructors
MigrationFunc(object, nint)
public MigrationFunc(object @object, nint method)
Parameters
Methods
BeginInvoke(ref TOld, out TNew, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(ref TOld oldComponent, out TNew newComponent, AsyncCallback callback, object @object)
Parameters
oldComponentTOldnewComponentTNewcallbackAsyncCallbackobjectobject
Returns
EndInvoke(ref TOld, out TNew, IAsyncResult)
public virtual void EndInvoke(ref TOld oldComponent, out TNew newComponent, IAsyncResult result)
Parameters
oldComponentTOldnewComponentTNewresultIAsyncResult
Invoke(ref TOld, out TNew)
public virtual void Invoke(ref TOld oldComponent, out TNew newComponent)
Parameters
oldComponentTOldnewComponentTNew