public T GetItem <T>(DataStorageKeyset key) { if (!data.ContainsKey(key)) { return(default(T)); } return(data[key] is T ? (T)data[key] : default(T)); }
public bool Remove(DataStorageKeyset key) { if (!data.ContainsKey(key)) { return(false); } data.Remove(key); return(true); }
public bool AddItem(DataStorageKeyset key, object input) { if (data.ContainsKey(key)) { data[key] = input; } else { data.Add(key, input); } return(true); }