public IScaleDescriptorAssignment AddDynamicScaleForProperty(string name) { var scaleAssignment = this.Scales.ForProperty(name); if (null == scaleAssignment) { var scale = new DynamicPropertyScaleDescriptor(this, name); scaleAssignment = new ScaleDescriptorAssignment { PropertyName = name, Scale = scale }; Scales.Add(scaleAssignment); } return(scaleAssignment); }
public IScaleDescriptorAssignment AddDynamicScaleForProperty(string name) { var scaleAssignment = this.Scales.ForProperty(name); if (null == scaleAssignment) { var scale = new DynamicPropertyScaleDescriptor(this, name); scaleAssignment = new ScaleDescriptorAssignment {PropertyName = name, Scale = scale}; Scales.Add(scaleAssignment); } return scaleAssignment; }