Beispiel #1
0
 public static int ExceptionInCondition3(NewBool nb)
 {
     if (nb.ThrowException())
     {
         return(42);
     }
     else
     {
         return(56);
     }
 }
Beispiel #2
0
        public static int ExceptionInCondition1(NewBool nb)
        {
            int n = 0;

            if (nb.BoolValue)
            {
                n = 67;
                return(42);
            }
            else
            {
                n = 56;
                return(56);
            }
        }
Beispiel #3
0
 public static int ExceptionInCondition2(NewBool nb)
 {
     return(nb.BoolValue ? 42 : 56);
 }