public RandomizableInt Clone(int cloneFlags = 0) { var r = new RandomizableInt(); CopyTo(r, cloneFlags); return(r); }
public void SetValue(RandomizableInt v, IntRange preferredRange) { value_ = v; if (value_ != null) { initial_.Parameter = value_.InitialParameter; initial_.Default = value_.Initial; initial_.Range = preferredRange; range_.Parameter = value_.RangeParameter; range_.Default = value_.Range; range_.Range = preferredRange; interval_.Parameter = value_.IntervalParameter; interval_.Default = value_.Interval; } }