Table of Contents

Delegate JsonSerialize.ResolveTypeDelegate

Namespace
CADability
Assembly
CADability.dll

Signature of the handlers of ResolveType: asked for the Type to instantiate when a type name read from a file cannot be resolved.

public delegate Type JsonSerialize.ResolveTypeDelegate(string typeName, string assemblyName)

Parameters

typeName string

The full name of the type as stored in the file

assemblyName string

The name of the assembly as stored in the file

Returns

Type

The type to use, or null if this handler does not know the type

Constructors

ResolveTypeDelegate(object, nint)

public ResolveTypeDelegate(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(string, string, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(string typeName, string assemblyName, AsyncCallback callback, object @object)

Parameters

typeName string
assemblyName string
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Type EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Type

Invoke(string, string)

public virtual Type Invoke(string typeName, string assemblyName)

Parameters

typeName string
assemblyName string

Returns

Type