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

            return(needed);
        }