public CustomActor(CustomActor copy) : this(Interop.CustomActorImpl.NewCustomActorConst(CustomActor.getCPtr(copy)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
public void CustomActoAssign() { tlog.Debug(tag, $"CustomActoAssign START"); var testingTarget = new CustomActor(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActor>(testingTarget, "Should be an Instance of CustomActor!"); using (View view = new View()) { using (CustomActor actor = new CustomActor(view.SwigCPtr.Handle, false)) { try { testingTarget.Assign(actor); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } } testingTarget.Dispose(); tlog.Debug(tag, $"CustomActoAssign END (OK)"); }
public CustomActor(CustomActor copy) : this(NDalicPINVOKE.new_CustomActor__SWIG_2(CustomActor.getCPtr(copy)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
public CustomActor Assign(CustomActor rhs) { CustomActor ret = new CustomActor(Interop.CustomActorImpl.CustomActorAssign(SwigCPtr, CustomActor.getCPtr(rhs)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static CustomActor DownCast(BaseHandle handle) { CustomActor ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as CustomActor; if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void CustomActorConstructor() { tlog.Debug(tag, $"CustomActorConstructor START"); var testingTarget = new CustomActor(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActor>(testingTarget, "Should be an Instance of CustomActor!"); testingTarget.Dispose(); tlog.Debug(tag, $"CustomActorConstructor END (OK)"); }
public void CustomActorConstructorWithCustomActor() { tlog.Debug(tag, $"CustomActorConstructorWithCustomActor START"); using (View view = new View()) { using (CustomActor actor = new CustomActor(view.SwigCPtr.Handle, false)) { var testingTarget = new CustomActor(actor); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActor>(testingTarget, "Should be an Instance of CustomActor!"); testingTarget.Dispose(); } } tlog.Debug(tag, $"CustomActorConstructorWithCustomActor END (OK)"); }
public void CustomActorDownCast() { tlog.Debug(tag, $"CustomActorDownCast START"); var testingTarget = new CustomActor(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <CustomActor>(testingTarget, "Should be an Instance of CustomActor!"); try { CustomActor.DownCast(testingTarget); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"CustomActorDownCast END (OK)"); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CustomActor obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr); }