public static IntPtr Box_TimeSpan(TimeSpan val) { TimeSpanStruct tempval = val; { IntPtr ret = NoesisGUI_PINVOKE.Box_TimeSpan(ref tempval); return(ret); } }
public Duration(System.TimeSpan timeSpan) { if (timeSpan < System.TimeSpan.Zero) { throw new ArgumentException("Duration cannot be negative"); } this._durationType = Duration.DurationType.TimeSpan; this._timeSpan = timeSpan; }
public RepeatBehavior(System.TimeSpan duration) { if (duration < System.TimeSpan.Zero) { throw new ArgumentOutOfRangeException("Repeat duration cannot be negative"); } this._repeatBehaviorType = RepeatBehavior.RepeatBehaviorType.RepeatDuration; this._iterationCount = 0.0f; this._repeatDuration = duration; }
public RepeatBehavior(float count) { if (float.IsInfinity(count) || float.IsNaN(count) || count < 0.0f) { throw new ArgumentOutOfRangeException("Invalid iteration count"); } this._repeatBehaviorType = RepeatBehavior.RepeatBehaviorType.IterationCount; this._iterationCount = count; this._repeatDuration = new TimeSpanStruct(0L); }
public bool Equals(TimeSpanStruct v) { return(this == v); }
public NullableTimeSpan(System.TimeSpan v) { this._hasValue = true; this._value = v; }