private PropertySet GetModifiedLocatorProperties() { PropertySet propertySet = _locatorProperties.Copy(); PropertySetProperty prop = propertySet.PropertyArray.FirstOrDefault(o => o.Key == "MinimumMatchScore"); if (prop != null) { prop.Value = MinimumScore; } prop = propertySet.PropertyArray.FirstOrDefault(o => o.Key == "SpellingSensitivity"); if (prop != null) { prop.Value = SpellingSensitivity; } if (!String.IsNullOrEmpty(CoordinateSystem)) { List <PropertySetProperty> propList = new List <PropertySetProperty>(propertySet.PropertyArray); propList.Add(new PropertySetProperty("OutputSpatialReference", SpatialReference.Create(CoordinateSystem))); propertySet.PropertyArray = propList.ToArray(); } return(propertySet); }
public void Copy() { PropertySet original = new PropertySet(); original.Add("abc", "123"); original.Add("def", ""); PropertySet copy = original.Copy(); Assert.AreNotSame(original, copy); AssertAreEqual(original, copy); }