Example #1
0
 public static IEnumerable <T> GuardEnumerableCollected <T>(IEnumerable <T> enumerable, RuntimeGuard guard)
 {
     return(guard.GuardEnumerableCollected(enumerable));
 }
Example #2
0
 public static long GuardCountInt64(long count, RuntimeGuard guard)
 {
     guard.GuardCount(count);
     return(count);
 }
Example #3
0
 public static IntPtr GuardCountIntPtr(IntPtr count, RuntimeGuard guard)
 {
     guard.GuardCount(count.ToInt64());
     return(count);
 }
Example #4
0
 public static int GuardCountInt32(int count, RuntimeGuard guard)
 {
     guard.GuardCount(count);
     return(count);
 }
Example #5
0
 public static TDisposable CollectDisposable <TDisposable>(TDisposable disposable, RuntimeGuard guard)
     where TDisposable : IDisposable
 {
     guard.CollectDisposable(disposable);
     return(disposable);
 }