Пример #1
0
 public void AssignFrom(SemicolonSeparatedMap other)
 {
     values.Clear();
     foreach (KeyValuePair <string, string> i in other.values)
     {
         values[i.Key] = i.Value;
     }
 }
Пример #2
0
 public bool AreEqual(SemicolonSeparatedMap other)
 {
     if (values.Count != other.values.Count)
     {
         return(false);
     }
     foreach (KeyValuePair <string, string> i in values)
     {
         string v;
         if (!other.values.TryGetValue(i.Key, out v))
         {
             return(false);
         }
         if (v != i.Value)
         {
             return(false);
         }
     }
     return(true);
 }