Language

JniRuntime.JniTypeManager.GetSimpleReference(Type) Method

Definition

Supplies the single-name lookup hook for a managed type.

protected virtual string? GetSimpleReference(Type type);
abstract member GetSimpleReference : Type -> string
override this.GetSimpleReference : Type -> string

Parameters

type
Type

The managed type whose simple JNI name is requested.

Returns

In .NET 9 and .NET 10 for Android, the base implementation returns the first name from GetSimpleReferences, or null if there is none. In .NET 11 for Android, it returns null.

Remarks

This hook does not resolve arrays in the base implementation.

Applies to