Example #1
0
        public void WidgetImplPtrConstructorWithIntPtr()
        {
            tlog.Debug(tag, $"WidgetImplPtrConstructorWithIntPtr START");

            Widget widget = new Widget();

            var testingTarget = new WidgetImplPtr(widget.GetIntPtr());

            Assert.IsNotNull(testingTarget, "Can't create success object WidgetImplPtr");
            Assert.IsInstanceOf <WidgetImplPtr>(testingTarget, "Should be an instance of WidgetImplPtr type.");

            widget.Dispose();
            widget = null;
            tlog.Debug(tag, $"WidgetImplPtrConstructorWithIntPtr END (OK)");
        }
Example #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WidgetImplPtr obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }