19 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
MbLogCallback obj) {
23 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
26 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
MbLogCallback obj) {
29 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
30 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
31 obj.swigCMemOwn =
false;
35 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
45 global::System.GC.SuppressFinalize(
this);
48 protected virtual void Dispose(
bool disposing) {
50 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
55 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
60 public virtual void NewMessage(
string message) {
61 operations_research_model_builderPINVOKE.MbLogCallback_NewMessage(swigCPtr, message);
66 SwigDirectorConnect();
69 private void SwigDirectorConnect() {
70 if (SwigDerivedClassHasMethod(
"NewMessage", swigMethodTypes0))
75 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
76 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
77 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
78 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
79 if (methodInfo.DeclaringType ==
null)
82 if (methodInfo.Name != methodName)
85 var parameters = methodInfo.GetParameters();
86 if (parameters.Length != methodTypes.Length)
89 bool parametersMatch =
true;
90 for (var i = 0; i < parameters.Length; i++) {
91 if (parameters[i].ParameterType != methodTypes[i]) {
92 parametersMatch =
false;
100 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(
MbLogCallback))) &&
101 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
109 private void SwigDirectorMethodNewMessage(
string message) {
117 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
string) };