private PropertyToFieldBiDirectionalBinding(PropertyToFieldBiDirectionalBinding prototype) { this.propertyToFieldMapping = prototype.propertyToFieldMapping .ToDictionary(kv => kv.Key, kv => kv.Value.Select( b => new FieldValueBinding( b ) ).ToList()); this.fieldValueComparer = prototype.fieldValueComparer; this.fieldToPropertyMapping = prototype.fieldToPropertyMapping; this.filedInfos = prototype.filedInfos; }
private PropertyToFieldBiDirectionalBinding(PropertyToFieldBiDirectionalBinding prototype) { this.propertyToFieldMapping = prototype.propertyToFieldMapping .ToDictionary(kv => kv.Key, kv => kv.Value.Select(b => new FieldValueBinding(b)).ToList()); this.fieldValueComparer = prototype.fieldValueComparer; this.fieldToPropertyMapping = prototype.fieldToPropertyMapping; this.filedInfos = prototype.filedInfos; }
public static PropertyToFieldBiDirectionalBinding CreateFromPrototype(PropertyToFieldBiDirectionalBinding prototype) { return(new PropertyToFieldBiDirectionalBinding(prototype)); }
private PropertyToFieldBiDirectionalBinding(PropertyToFieldBiDirectionalBinding prototype) { this.propertyToFieldMapping = prototype.propertyToFieldMapping.ToDictionary(kv => kv.Key, kv => new FieldValueBinding(kv.Value)); this.fieldToPropertyMapping = prototype.fieldToPropertyMapping.ToDictionary(kv => kv.Key, kv => kv.Value); }
public static PropertyToFieldBiDirectionalBinding CreateFromPrototype(PropertyToFieldBiDirectionalBinding prototype) { return new PropertyToFieldBiDirectionalBinding(prototype); }