Beispiel #1
0
        public SerializatorIdTable CreateSerializatorTable(DeserializatorIdTable deserializatorTable)
        {
            SerializatorIdTable result = new SerializatorIdTable();

            foreach (KeyValuePair <string, Element> pair in deserializatorTable)
            {
                result.Add(pair.Value, XCaseGuid.Parse(pair.Key));
            }
            return(result);
        }
Beispiel #2
0
 public void AddFromTable(DeserializatorIdTable table)
 {
     if (table == null)
     {
         throw new ArgumentNullException("table", "Argument 'table' must not be null.");
     }
     foreach (KeyValuePair <string, Element> pair in table)
     {
         Add(pair.Key, pair.Value);
     }
 }