Android Guides | Samples

Java.Lang.Class.SimpleName Property

Returns the simple name of the class represented by this Class as defined in the source code.

Syntax

[get: Android.Runtime.Register("getSimpleName", "()Ljava/lang/String;", "GetGetSimpleNameHandler")]
public String SimpleName { get; }

Remarks

Returns the simple name of the class represented by this Class as defined in the source code. If there is no name (that is, the class is anonymous) then an empty string is returned. If the receiver is an array then the name of the underlying type with square braces appended (for example "Integer[]") is returned.

[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