public unsafe NeuronProperties(global::Org.Neuroph.Util.WeightsFunctionType p0, global::Org.Neuroph.Util.SummingFunctionType p1, global::Org.Neuroph.Util.TransferFunctionType p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); if (GetType() != typeof(NeuronProperties)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/util/WeightsFunctionType;Lorg/neuroph/util/SummingFunctionType;Lorg/neuroph/util/TransferFunctionType;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/util/WeightsFunctionType;Lorg/neuroph/util/SummingFunctionType;Lorg/neuroph/util/TransferFunctionType;)V", __args); return; } if (id_ctor_Lorg_neuroph_util_WeightsFunctionType_Lorg_neuroph_util_SummingFunctionType_Lorg_neuroph_util_TransferFunctionType_ == IntPtr.Zero) { id_ctor_Lorg_neuroph_util_WeightsFunctionType_Lorg_neuroph_util_SummingFunctionType_Lorg_neuroph_util_TransferFunctionType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/util/WeightsFunctionType;Lorg/neuroph/util/SummingFunctionType;Lorg/neuroph/util/TransferFunctionType;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_util_WeightsFunctionType_Lorg_neuroph_util_SummingFunctionType_Lorg_neuroph_util_TransferFunctionType_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_util_WeightsFunctionType_Lorg_neuroph_util_SummingFunctionType_Lorg_neuroph_util_TransferFunctionType_, __args); } finally { } }
public static unsafe global::Org.Neuroph.Util.WeightsFunctionType 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/util/WeightsFunctionType;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Org.Neuroph.Util.WeightsFunctionType __ret = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Util.WeightsFunctionType> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }