Dalvik.SystemInterop.DexFile.LoadClass Method
Loads a class.

Syntax

[Android.Runtime.Register("loadClass", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;", "")]
public Java.Lang.Class LoadClass (string name, Java.Lang.ClassLoader loader)

Parameters

name
the class name, which should look like "java/lang/String"
loader
the class loader that tries to load the class (in most cases the caller of the method

Returns

Documentation for this section has not yet been entered.

Remarks

Loads a class. Returns the class on success, or a null reference on failure.

If you are not calling this from a class loader, this is most likely not going to do what you want. Use Java.Lang.Class.ForName(string) instead.

The method does not throw Java.Lang.ClassNotFoundException if the class isn't found because it isn't reasonable to throw exceptions wildly every time a class is not found in the first DEX file we look at.

[Android Documentation]

Requirements

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