Class.GetGenericInterfaces Method
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 the Type
s representing the interfaces
directly implemented by the class or interface represented by
this object.
[Android.Runtime.Register("getGenericInterfaces", "()[Ljava/lang/reflect/Type;", "")]
public Java.Lang.Reflect.IType[] GetGenericInterfaces ();
[<Android.Runtime.Register("getGenericInterfaces", "()[Ljava/lang/reflect/Type;", "")>]
member this.GetGenericInterfaces : unit -> Java.Lang.Reflect.IType[]
Returns
an array of interfaces directly implemented by this class
- Attributes
Remarks
Returns the Type
s representing the interfaces directly implemented by the class or interface represented by this object.
If a superinterface is a parameterized type, the Type
object returned for it must accurately reflect the actual type parameters used in the source code. The parameterized type representing each superinterface is created if it had not been created before. See the declaration of java.lang.reflect.ParameterizedType ParameterizedType
for the semantics of the creation process for parameterized types.
If this object represents a class, the return value is an array containing objects representing all interfaces directly implemented by the class. The order of the interface objects in the array corresponds to the order of the interface names in the implements
clause of the declaration of the class represented by this object.
If this object represents an interface, the array contains objects representing all interfaces directly extended by the interface. The order of the interface objects in the array corresponds to the order of the interface names in the extends
clause of the declaration of the interface represented by this object.
If this object represents a class or interface that implements no interfaces, the method returns an array of length 0.
If this object represents a primitive type or void, the method returns an array of length 0.
If this Class
object represents an array type, the interfaces Cloneable
and java.io.Serializable
are returned in that order.
Added in 1.5.
Java documentation for java.lang.Class.getGenericInterfaces()
.
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.