private static SetSuffix <TParam> BuildBasicSetSuffix <TParam>() where TParam : Encapsulation.Structure { var basicInstance = new StrongBox <TParam>(default(TParam)); SuffixSetDlg <TParam> setter = value => basicInstance.Value = value; SuffixGetDlg <TParam> getter = () => basicInstance.Value; return(new SetSuffix <TParam>(getter, setter)); }
private static SetSuffix<TParam> BuildBasicSetSuffix<TParam>() { var basicInstance = new StrongBox<TParam>(default(TParam)); SuffixSetDlg<TParam> setter = value => basicInstance.Value = value; SuffixGetDlg<TParam> getter = () => basicInstance.Value; return new SetSuffix<TParam>(getter, setter); }
public SetSuffix(SuffixGetDlg <TValue> getter, SuffixSetDlg <TValue> setter, string description = "") : base(getter, description) { this.setter = setter; }
public ClampSetSuffix(SuffixGetDlg <TValue> getter, SuffixSetDlg <TValue> setter, double min, double max, string description = "") : base(getter, setter, description) { this.min = min; this.max = max; }
public ClampSetSuffix(SuffixGetDlg <TValue> getter, SuffixSetDlg <TValue> setter, double min, double max, float stepIncrement, string description = "") : this(getter, setter, min, max, description) { this.stepIncrement = stepIncrement; }
public Suffix(SuffixGetDlg <TReturn> getter, string description = "") : base(description) { this.getter = getter; }
private static SuffixGetDlg <TParam> BuildBasicGetter <TParam>(StrongBox <TParam> state) { SuffixGetDlg <TParam> getter = () => state.Value; return(getter); }
private static SuffixGetDlg <TParam> BuildBasicGetter <TParam>(StrongBox <TParam> state) where TParam : Encapsulation.Structure { SuffixGetDlg <TParam> getter = () => state.Value; return(getter); }