public static Byte Decrement(this ILockingAtomic <Byte> @this, out Byte previousValue) => @this.Set(i => -- i, out previousValue);
 public static Int32 Add(this ILockingAtomic <Int32> @this, Int32 operand) => @this.Set(i => i + operand);
Exemplo n.º 3
0
 public static void Combine <T>(this ILockingAtomic <T> @this, T delegateToCombine) where T : MulticastDelegate
 {
     @this.Set(v => (T)Delegate.Combine(v, delegateToCombine));
 }
 public static SByte Increment(this ILockingAtomic <SByte> @this, out SByte previousValue) => @this.Set(i => ++ i, out previousValue);
 public static Int32 Decrement(this ILockingAtomic <Int32> @this) => @this.Set(i => -- i);
 public static UInt16 Multiply(this ILockingAtomic <UInt16> @this, UInt16 operand) => @this.Set(i => (UInt16)(i * operand));
 public static UInt16 Divide(this ILockingAtomic <UInt16> @this, UInt16 operand) => @this.Set(i => (UInt16)(i / operand));
 public static Byte Divide(this ILockingAtomic <Byte> @this, Byte operand) => @this.Set(i => (Byte)(i / operand));
 public static Byte Divide(this ILockingAtomic <Byte> @this, Byte operand, out Byte previousValue) => @this.Set(i => (Byte)(i / operand), out previousValue);
 public static Byte Multiply(this ILockingAtomic <Byte> @this, Byte operand) => @this.Set(i => (Byte)(i * operand));
 public static Byte Multiply(this ILockingAtomic <Byte> @this, Byte operand, out Byte previousValue) => @this.Set(i => (Byte)(i * operand), out previousValue);
 public static Byte Subtract(this ILockingAtomic <Byte> @this, Byte operand, out Byte previousValue) => @this.Set(i => (Byte)(i - operand), out previousValue);
 public static Byte Subtract(this ILockingAtomic <Byte> @this, Byte operand) => @this.Set(i => (Byte)(i - operand));
 public static Byte Add(this ILockingAtomic <Byte> @this, Byte operand) => @this.Set(i => (Byte)(i + operand));
 public static UInt16 Subtract(this ILockingAtomic <UInt16> @this, UInt16 operand) => @this.Set(i => (UInt16)(i - operand));
 public static Int16 Increment(this ILockingAtomic <Int16> @this, out Int16 previousValue) => @this.Set(i => ++ i, out previousValue);
 public static UInt16 Subtract(this ILockingAtomic <UInt16> @this, UInt16 operand, out UInt16 previousValue) => @this.Set(i => (UInt16)(i - operand), out previousValue);
 public static Int16 Add(this ILockingAtomic <Int16> @this, Int16 operand, out Int16 previousValue) => @this.Set(i => (Int16)(i + operand), out previousValue);
 public static UInt16 Multiply(this ILockingAtomic <UInt16> @this, UInt16 operand, out UInt16 previousValue) => @this.Set(i => (UInt16)(i * operand), out previousValue);
 public static UInt16 Increment(this ILockingAtomic <UInt16> @this) => @this.Set(i => ++ i);
 public static UInt16 Divide(this ILockingAtomic <UInt16> @this, UInt16 operand, out UInt16 previousValue) => @this.Set(i => (UInt16)(i / operand), out previousValue);
 public static UInt16 Decrement(this ILockingAtomic <UInt16> @this) => @this.Set(i => -- i);
 public static Int32 Increment(this ILockingAtomic <Int32> @this) => @this.Set(i => ++ i);
 public static UInt16 Decrement(this ILockingAtomic <UInt16> @this, out UInt16 previousValue) => @this.Set(i => -- i, out previousValue);
 public static Int32 Decrement(this ILockingAtomic <Int32> @this, out Int32 previousValue) => @this.Set(i => -- i, out previousValue);
 public static UInt16 Add(this ILockingAtomic <UInt16> @this, UInt16 operand) => @this.Set(i => (UInt16)(i + operand));
 public static Int32 Add(this ILockingAtomic <Int32> @this, Int32 operand, out Int32 previousValue) => @this.Set(i => i + operand, out previousValue);
 public static SByte Increment(this ILockingAtomic <SByte> @this) => @this.Set(i => ++ i);
Exemplo n.º 29
0
 public static void RemoveAll <T>(this ILockingAtomic <T> @this, T delegateToRemove) where T : MulticastDelegate
 {
     @this.Set(v => (T)Delegate.RemoveAll(v, delegateToRemove));
 }
 public static Byte Decrement(this ILockingAtomic <Byte> @this) => @this.Set(i => -- i);