private static void DisposeUnused(ResourceBank supply) { foreach (var keyValuePair in supply) { keyValuePair.Key.Dispose(keyValuePair.Value); } }
private ResourceBank StoreSurplus(ResourceBank supply) { return(ResourceBank.Empty); }
private ResourceBank GetShortage(ResourceBank shortage) { var needed = -shortage; return(needed); }