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;
 }
示例#3
0
 public static PropertyToFieldBiDirectionalBinding CreateFromPrototype(PropertyToFieldBiDirectionalBinding prototype)
 {
     return(new PropertyToFieldBiDirectionalBinding(prototype));
 }
示例#4
0
 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);
 }
 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);
 }