예제 #1
0
        static void Main(string[] args)
        {
            var scaleValue = new Scale <int>(16, 15);

            Console.WriteLine(scaleValue.GetHeavier());
            Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Scale <bool> box = new Scale <bool>(true, true);

            Console.WriteLine(box.GetHeavier());
            Console.Read();
        }
예제 #3
0
        static void Main(string[] args)
        {
            var v1    = 2;
            var v2    = 2;
            var sclae = new Scale <int>(v1, v2);

            Console.WriteLine(sclae.GetHeavier());
        }
예제 #4
0
        static void Main()
        {
            Scale <int> scalesOfJustice = new Scale <int>(12, 3);

            Console.WriteLine(scalesOfJustice.GetHeavier());
            Scale <string> scalesOfJustice2 = new Scale <string>("Asen", "Mais");

            Console.WriteLine(scalesOfJustice2.GetHeavier());
        }
예제 #5
0
        public static void Main()
        {
            var scale = new Scale <int>();

            scale.Right = 2;
            scale.Left  = 5;

            Console.WriteLine(scale.GetHeavier());
        }
예제 #6
0
        public static void Main()
        {
            var scale1 = new Scale <int>(5, 10);

            Console.WriteLine(scale1.GetHeavier());

            var scale2 = new Scale <string>("Man", "Woman");

            Console.WriteLine(scale2.GetHeavier());
        }
예제 #7
0
        public static void Main()
        {
            var scale  = new Scale <int>(25, 2); //to set value must be set in the constructor
            var scale1 = new Scale <double>(13, 19);
            var scale2 = new Scale <string>("aaa", "aaa");

            Console.WriteLine(scale.GetHeavier());
            Console.WriteLine(scale1.GetHeavier());
            Console.WriteLine(scale2.GetHeavier());
        }
예제 #8
0
        public static void Main(string[] args)
        {
            var Myscale1 = new Scale <int>(10, 20);

            Console.WriteLine(Myscale1.GetHeavier());

            var Myscale2 = new Scale <string>("Love", "Hate");

            Console.WriteLine(Myscale2.GetHeavier());


            Console.WriteLine("Any Key to Quit!");
            Console.ReadLine();
        }
예제 #9
0
        public static void Main()
        {
            var scale = new Scale <int>(20, 5);

            Console.WriteLine(scale.GetHeavier());
        }
예제 #10
0
        static void Main(string[] args)
        {
            Scale <int> scale = new Scale <int>(4, 36);

            Console.WriteLine(scale.GetHeavier());
        }
예제 #11
0
        public static void Main()
        {
            var scale = new Scale <string>("Ani", "Vasko");

            Console.WriteLine(scale.GetHeavier());
        }
예제 #12
0
        public static void Main(string[] args)
        {
            Scale <Peron <int> > scale = new Scale <Peron <int> >(new Peron <int>(), new Peron <int>());

            Console.WriteLine(scale.GetHeavier());
        }
예제 #13
0
파일: Program.cs 프로젝트: synset/Generics
        static void Main(string[] args)
        {
            Scale <string> scale = new Scale <string>("5", "10");

            Console.WriteLine(scale.GetHeavier());
        }
예제 #14
0
        static void Main()
        {
            Scale <int> scale = new Scale <int>(5, 15);

            Console.WriteLine(scale.GetHeavier());
        }