Android Guides | Samples

Java.Lang.Class.ClassLoader Property

Returns the class loader which was used to load the class represented by this Class.

Syntax

[get: Android.Runtime.Register("getClassLoader", "()Ljava/lang/ClassLoader;", "GetGetClassLoaderHandler")]
public ClassLoader ClassLoader { get; }

Remarks

Returns the class loader which was used to load the class represented by this Class. Implementations are free to return null for classes that were loaded by the bootstrap class loader. The Android reference implementation, though, always returns a reference to an actual class loader.

[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