Is there a way to remove an entry from a Dictionary (by Key) AND retrieve it\'s Value in \"the same step?\"
Dictionary
Key
Value
For example, I\'m
You can extend the class to add that functionality:
public class PoppableDictionary : Dictionary { public V Pop(T key) { V value = this[key]; this.Remove(key); return value; } }