public static void CopyFrom(this SchemaPropertyValueCollection pcProperties, ClientPropertyValueCollection clientProperties) { pcProperties.NullCheck("pcProperties"); foreach (var ppt in clientProperties) { pcProperties[ppt.Key].StringValue = ppt.StringValue; } }
public static void CopyTo(this SchemaPropertyValueCollection pcProperties, ClientPropertyValueCollection clientProperties) { pcProperties.NullCheck("pcProperties"); pcProperties.ForEach(pcpv => clientProperties.Add(pcpv.ToClientPropertyValue())); }