Exemplo n.º 1
0
 static void ThrowIfOperandNull(ContextualOperand left, ContextualOperand right)
 {
     if ((object)left == null && (object)right == null)
     {
         throw new ArgumentNullException("operand", "You should cast null to Operand base type because null can't be ContextualOperand");
     }
 }
Exemplo n.º 2
0
 internal static ContextualOperand SetLeakedState(ContextualOperand operand, bool state)
 {
     if ((object)operand != null)
     {
         operand.LeakedState = state;
     }
     return(operand);
 }
Exemplo n.º 3
0
 internal static void SetLeakedState(ContextualOperand[] operands, bool state)
 {
     if (operands != null)
     {
         for (int i = 0; i < operands.Length; i++)
         {
             OperandExtensions.SetLeakedState(operands[i], state);
         }
     }
 }
Exemplo n.º 4
0
 static void ThrowIfOperandNull(ContextualOperand left, ContextualOperand right)
 {
     if ((object)left == null && (object)right == null) throw new ArgumentNullException("operand", "You should cast null to Operand base type because null can't be ContextualOperand");
 }
Exemplo n.º 5
0
 internal static ContextualOperand SetLeakedState(ContextualOperand operand, bool state)
 {
     if ((object)operand != null)
         operand.LeakedState = state;
     return operand;
 }