private static void ReadPartLinkProperties (KspObject obj, List<KeyValuePair<String, String>> attributes) { foreach (var attribute in attributes) { if (IsPartLinkAttribute (obj, attribute)) { obj.InsertProperty (attributes.IndexOf (attribute), ReadPartLinkProperty (obj, attribute)); } } }
private static void ReadStringProperties (KspObject obj, List<KeyValuePair<String, String>> attributes) { foreach (var attribute in attributes) { if (IsStringAttribute (obj, attribute)) { obj.InsertProperty (attributes.IndexOf (attribute), new KspStringProperty (attribute.Key, attribute.Value)); } } }