Esempio n. 1
0
    static void Main()
    {
        DBBool bTrue  = new DBBool(DBBool.True);
        DBBool bNull  = new DBBool(DBBool.Null);
        DBBool bFalse = new DBBool(DBBool.False);

        Console.WriteLine("bTrue && bNull is {0}", bTrue && bNull);
        Console.WriteLine("bTrue && bFalse is {0}", bTrue && bFalse);
        Console.WriteLine("bTrue && bTrue is {0}", bTrue && bTrue);
        Console.WriteLine();

        Console.WriteLine("bTrue || bNull is {0}", bTrue || bNull);
        Console.WriteLine("bFalse || bFalse is {0}", bFalse || bFalse);
        Console.WriteLine("bTrue || bFalse is {0}", bTrue || bFalse);
        Console.WriteLine();

        Console.WriteLine("!bTrue is {0}", !bTrue);
        Console.WriteLine("!bFalse is {0}", !bFalse);
        Console.WriteLine("!bNull is {0}", !bNull);
        Console.ReadLine();
    }
Esempio n. 2
0
            static void Main()
            {
                DBBool a = DBBool.dbTrue;
                DBBool b = DBBool.dbNull;

                System.Console.WriteLine("!{0} = {1}", a, !a);
                System.Console.WriteLine("!{0} = {1}", b, !b);
                System.Console.WriteLine("{0} & {1} = {2}", a, b, a & b);
                System.Console.WriteLine("{0} | {1} = {2}", a, b, a | b);

                // Invoke the true operator to determine the Boolean
                // value of the DBBool variable:
                if (b)
                {
                    System.Console.WriteLine("{0} is definitely true", b);
                }
                else
                {
                    System.Console.WriteLine("{0} is not definitely true", b);
                }
            }
Esempio n. 3
0
    static void Main()
    {
        DBBool bTrue = new DBBool(DBBool.True);
        DBBool bNull = new DBBool(DBBool.Null);
        DBBool bFalse = new DBBool(DBBool.False);

        Console.WriteLine("bTrue && bNull is {0}", bTrue && bNull);
        Console.WriteLine("bTrue && bFalse is {0}", bTrue && bFalse);
        Console.WriteLine("bTrue && bTrue is {0}", bTrue && bTrue);
        Console.WriteLine();

        Console.WriteLine("bTrue || bNull is {0}", bTrue || bNull);
        Console.WriteLine("bFalse || bFalse is {0}", bFalse || bFalse);
        Console.WriteLine("bTrue || bFalse is {0}", bTrue || bFalse);
        Console.WriteLine();

        Console.WriteLine("!bTrue is {0}", !bTrue);
        Console.WriteLine("!bFalse is {0}", !bFalse);
        Console.WriteLine("!bNull is {0}", !bNull);
        Console.ReadLine();
    }
        public unsafe void Fun(string arg)
        {
            bool   flag        = true;
            byte   b           = 1;
            int    i           = 4;
            int *  iPtr        = &i;
            float  pi          = 3.14f;
            string hi          = "hi";
            string emptyString = "";
            DBBool boo         = DBBool.Null;
            var    enumerable  = Enumerable.Empty <int>();

            char[]      array  = "Hello".ToCharArray();
            char[]      array2 = "world".ToCharArray();
            char[][]    arrays = new char[][] { array, array2 };
            List <char> list   = new List <char>(array);

            DerivedClass myClass  = new DerivedClass();
            BaseClass    myClass2 = myClass;

            int *[][,] complexType1 = new int *[][, ] {
                new int *[, ] {
                    { (int *)0xDA1D }
                }
            };
            A <int> .B.C <char>[][,] complexType2 = new A <int> .B.C <char> [0][, ];

//			System.Threading.Thread bgWork = new System.Threading.Thread(
//				delegate() { WorkerThreadMoved = true; }
//			);
//
//			System.Diagnostics.Debugger.Break();
//			bgWork.Start();
//			System.Threading.Thread.Sleep(100);

            System.Diagnostics.Debugger.Break();

            i++;
        }
Esempio n. 5
0
 public DBBool(DBBool b)
 {
     this.value = (sbyte)b.value;
 }
Esempio n. 6
0
 public DBBool(DBBool b)
 {
     this.value = (sbyte)b.value;
 }