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)); } }
public bool RemoveValue(KeyModel key) => _storage.RemoveValue(key);
public ValueModel GetValue(KeyModel key) => _storage.GetValue(key);
public ValueModel SetValue(KeyModel key, ValueModel value) => _storage.SetValue(key, value);