Field.GenericType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Type
object that represents the declared type for
the field represented by this Field
object.
public Java.Lang.Reflect.IType GenericType { [Android.Runtime.Register("getGenericType", "()Ljava/lang/reflect/Type;", "")] get; }
[<get: Android.Runtime.Register("getGenericType", "()Ljava/lang/reflect/Type;", "")>]
member this.GenericType : Java.Lang.Reflect.IType
Property Value
a Type
object that represents the declared type for
the field represented by this Field
object
- Attributes
Exceptions
if the generic field signature is invalid
if the generic type points to a missing type
if the generic type points to a type that cannot be instantiated for some reason
Remarks
Returns a Type
object that represents the declared type for the field represented by this Field
object.
If the Type
is a parameterized type, the Type
object returned must accurately reflect the actual type parameters used in the source code.
If the type of the underlying field is a type variable or a parameterized type, it is created. Otherwise, it is resolved.
Added in 1.5.
Java documentation for java.lang.reflect.Field.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.