public static JavaRuntime GetJavaRuntime() { if (instance == null) { instance = new JavaRuntime(); } return(instance); }
public static object NewInstance(string className) { Type type = JavaRuntime.ClassforName(className); return(Activator.CreateInstance(type)); }