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