語言

ITypeVariable.GetBounds 方法

定義

回傳一個代表此類型變數上界的物件陣列 Type

[Android.Runtime.Register("getBounds", "()[Ljava/lang/reflect/Type;", "GetGetBoundsHandler:Java.Lang.Reflect.ITypeVariableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Reflect.IType[] GetBounds();
[<Android.Runtime.Register("getBounds", "()[Ljava/lang/reflect/Type;", "GetGetBoundsHandler:Java.Lang.Reflect.ITypeVariableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetBounds : unit -> Java.Lang.Reflect.IType[]

傳回

IType[]

一個代表此類型變數上界的 s 陣列Type

屬性

例外狀況

如果任何邊界指向缺失型態

如果 有邊界指向無法實例化的型別

備註

回傳一個代表此類型變數上界的物件陣列 Type 。 若未明確宣告上界,則上界為 Object

對於每個上界 B: <ul><li>,若 B 是參數化型態或型態變數,則會建立該參數化型態,(詳見java.lang.reflect.ParameterizedType ParameterizedType參數化型別的建立過程細節)。 <否則>,B 解決。 </ul>

Java 文件 java.lang.reflect.TypeVariable.getBounds()

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於