示例#1
0
 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());
     }
 }
示例#2
0
 public static bool TryGetPrototype(string name, out DDLInstance prototype)
 {
     return(prototypes.TryGetValue(name, out prototype));
 }