public DDLInstance(DDLInstance prototype) { properties = new Dictionary <string, DDLValueType>(StringComparer.OrdinalIgnoreCase); foreach (KeyValuePair <string, DDLValueType> pair in prototype.properties) { properties.Add(pair.Key, pair.Value.Clone()); } }
public static bool TryGetPrototype(string name, out DDLInstance prototype) { return(prototypes.TryGetValue(name, out prototype)); }