public NullableDateTime(datetime_t value) : this(CommonPINVOKE.new_NullableDateTime__SWIG_1(datetime_t.getCPtr(value)), true) { if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } }
public datetime_t GetValueOrDefault() { datetime_t ret = new datetime_t(CommonPINVOKE.NullableDateTime_GetValueOrDefault(swigCPtr), false); if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public System.DateTime GetStopTimeConstraint() { global::System.IntPtr cPtr = CommonPINVOKE.SubscriberConnection_GetStopTimeConstraint(swigCPtr); if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } using (datetime_t tempDate = (cPtr == global::System.IntPtr.Zero) ? null : new datetime_t(cPtr, false)) { return(new System.DateTime(Common.ToTicks(tempDate))); } }
protected virtual void DataStartTime(System.DateTime startTime) { datetime_t tempstartTime = Common.FromTicks(startTime.Ticks); { if (SwigDerivedClassHasMethod("DataStartTime", swigMethodTypes4)) { CommonPINVOKE.SubscriberInstanceBase_DataStartTimeSwigExplicitSubscriberInstanceBase(swigCPtr, datetime_t.getCPtr(tempstartTime)); } else { CommonPINVOKE.SubscriberInstanceBase_DataStartTime(swigCPtr, datetime_t.getCPtr(tempstartTime)); } if (CommonPINVOKE.SWIGPendingException.Pending) { throw CommonPINVOKE.SWIGPendingException.Retrieve(); } } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(datetime_t obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }