JniRuntime.JniTypeManager.GetInvokerType(Type) Metodo

Definizione

Ottiene il tipo invoker per type

public Type? GetInvokerType(Type type);
member this.GetInvokerType : Type -> Type

Parametri

type
Type

Valori restituiti

Se type è un'interfaccia o una classe astratta, restituisce il tipo che deve essere costruito intorno alle istanze di type. Se non esiste alcun tipo di questo tipo o se type è un tipo concreto, null viene restituito .

Commenti

Un tipo Invoker è un tipo concreto che può essere costruito, che viene usato per richiamare istanze di tipo astratto che non possono essere costruite. Ad esempio, il tipo di Java.Lang.IRunnable interfaccia non può essere costruito, ma se un'istanza java.lang.Runnable immette codice gestito, un invoker deve essere costruito intorno all'istanza in modo che possa essere usato.

Si applica a