Android Guides | Samples

Java.Lang.Class.DeclaringClass Property

Returns the class that this class is a member of, or null if this class is a top-level class, a primitive, an array, or defined within a method or constructor.

Syntax

[get: Android.Runtime.Register("getDeclaringClass", "()Ljava/lang/Class;", "GetGetDeclaringClassHandler")]
public Class DeclaringClass { get; }

Remarks

Returns the class that this class is a member of, or null if this class is a top-level class, a primitive, an array, or defined within a method or constructor.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1