Doodle Post
No Comments
class SortedDictionaryList<TKey, TValue> : SortedDictionary<TKey, List<TValue>> {
public SortedDictionaryList(IComparer<TKey> comparer) : base(comparer) { }
public SortedDictionaryList() { }
public bool HasItem(TKey key, TValue item) {
if (!ContainsKey(key))
return false;
else
return this[key].Contains(item);
}
public TKey FindKey(TValue item) {
foreach(var key in Keys)
if (this[key].Contains(item)) return key;
return default(TKey);
}
public void AddItem(TKey key, TValue item) {
if (!ContainsKey(key))
Add(key, new List<TValue>());
this[key].Add(item);
}
public void RemoveItem(TKey key, TValue item) {
this[key].Remove(item);
}
}
RT @thekirbybot: Kirby FACT 1: circle
@knowdirection omg awesome. the french word for monkey also is great here because i went acrobat dedication to get… t.co/hzogC7Oham
playin' a pistolero gunslinger in another #pathfinder2e mini adventure in a party of all gunslingers and boy howdy… t.co/jEIr8Ymqfn
@Noob92197834 i didn't feel any hate light up roller coaster made me laugh out loud i appreciate it lmao
winding up !! t.co/VT2lLYN1WP