public unsafe NeuralNetworkEvent(global::Org.Neuroph.Core.Layer p0, global::Org.Neuroph.Core.Events.NeuralNetworkEventType p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() != typeof(NeuralNetworkEvent)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/core/Layer;Lorg/neuroph/core/events/NeuralNetworkEventType;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/core/Layer;Lorg/neuroph/core/events/NeuralNetworkEventType;)V", __args); return; } if (id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_core_events_NeuralNetworkEventType_ == IntPtr.Zero) { id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_core_events_NeuralNetworkEventType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/core/Layer;Lorg/neuroph/core/events/NeuralNetworkEventType;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_core_events_NeuralNetworkEventType_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_core_events_NeuralNetworkEventType_, __args); } finally { } }
public static unsafe global::Org.Neuroph.Core.Events.NeuralNetworkEventType ValueOf(string p0) { if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero) { id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lorg/neuroph/core/events/NeuralNetworkEventType;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Org.Neuroph.Core.Events.NeuralNetworkEventType __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Events.NeuralNetworkEventType> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }