Android Guides | Samples

Java.Lang.Class.EnclosingMethod Property

Returns the enclosing Method of this Class, if it is an anonymous or local/automatic class; otherwise null.

Syntax

[get: Android.Runtime.Register("getEnclosingMethod", "()Ljava/lang/reflect/Method;", "GetGetEnclosingMethodHandler")]
public Method EnclosingMethod { get; }

Remarks

Returns the enclosing Method of this Class, if it is an anonymous or local/automatic class; otherwise null.

[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