/// <summary> /// Creates a new lens by taking the property-getter function, and deriving from /// that, the property-setter function, returning a new lens with both the /// getter/setter filled-in. /// </summary> public static Lens <TObject, TProperty> New(Expression <Func <TObject, TProperty> > propertyGetter) { var getter = propertyGetter.Compile(); var setter = DeriveSetterLambda(propertyGetter); var lens = new Lens <TObject, TProperty>(getter, setter); return(lens); }
public Sequencer(Lens <T, int> sequenceNo) { _sequenceNo = sequenceNo; }