Esempio n. 1
0
        public void Test1()
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();

            Beer b_1 = new Beer()
            {
                Alco = 9
            };
            Beer b_2 = new Beer()
            {
                Alco = 10
            };

            for (int i = 0; i < _count; i++)
            {
                if (b_1.Equals(b_2))
                {
                    Console.Write("==");
                }
            }

            sw.Stop();
            Console.WriteLine(string.Format("Beer-OVERRIDE: {0}ms",
                                            sw.ElapsedMilliseconds));
        }