Method.GenericReturnType 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 formal return
type of the method represented by this Method
object.
public Java.Lang.Reflect.IType GenericReturnType { [Android.Runtime.Register("getGenericReturnType", "()Ljava/lang/reflect/Type;", "")] get; }
[<get: Android.Runtime.Register("getGenericReturnType", "()Ljava/lang/reflect/Type;", "")>]
member this.GenericReturnType : Java.Lang.Reflect.IType
Property Value
a Type
object that represents the formal return
type of the underlying method
- Attributes
Exceptions
if the generic method signature is invalid
if the return type points to a missing type
if the return type points to a type that cannot be instantiated for some reason
Remarks
Returns a Type
object that represents the formal return type of the method represented by this Method
object.
If the return type is a parameterized type, the Type
object returned must accurately reflect the actual type parameters used in the source code.
If the return type 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.Method.getGenericReturnType()
.
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.