public override bool Equals(Object obj)
 {
     //Check for null and compare run-time types.
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         KeyModel p = (KeyModel)obj;
         return((KeyPart1 == p.KeyPart1) && (KeyPart2 == p.KeyPart2));
     }
 }
Esempio n. 2
0
 public bool RemoveValue(KeyModel key) => _storage.RemoveValue(key);
Esempio n. 3
0
 public ValueModel GetValue(KeyModel key) => _storage.GetValue(key);
Esempio n. 4
0
 public ValueModel SetValue(KeyModel key, ValueModel value) => _storage.SetValue(key, value);