RecordComponent.GenericType Property

Definition

Returns a Type object that represents the declared type for this record component.

public Java.Lang.Reflect.IType GenericType { [Android.Runtime.Register("getGenericType", "()Ljava/lang/reflect/Type;", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getGenericType", "()Ljava/lang/reflect/Type;", "", ApiSince=34)>]
member this.GenericType : Java.Lang.Reflect.IType

Property Value

a Type object that represents the declared type for this record component

Attributes

Remarks

Returns a Type object that represents the declared type for this record component.

If the declared type of the record component is a parameterized type, the Type object returned reflects the actual type arguments used in the source code.

If the type of the underlying record component is a type variable or a parameterized type, it is created. Otherwise, it is resolved.

Java documentation for java.lang.reflect.RecordComponent.getGenericType().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to