Exemplo n.º 1
0
        static void Main(string[] args)
        {
            bool res1 = Test1();

            Test2();
            MinReturType res2 = Test3();

            int aaa;

            aaa = 10;
            bool b = true;

            Test4a(ref aaa, b);

            int[] ar = { 51, 4, 24, 2, 5 };
            UdskrivArray(ar);


            Test6(ref ar);

            Test7("", 1);
            Test7("", 1, 2);
            Test7("", 1, 2, 2, 1, 4, 2, 4, 54, 4);

            double res3 = Test8(100);
            double res4 = Test8(100, .25);
            double res5 = Test8(moms: 0.3, beløb: 10000);

            VisFiler("c:\\temp");

            //(string, int) res7 = Test3a();
            var res7 = Test3a();
        }
Exemplo n.º 2
0
        static MinReturType Test3()
        {
            MinReturType r = new MinReturType();

            r.a = "lkj lkj";
            r.b = 10;
            return(r);
        }
Exemplo n.º 3
0
        public static MinReturType Test10(int a)
        {
            MinReturType t = new MinReturType();

            t.a = 10;
            t.b = true;
            t.c = 223;
            return(t);
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            //Person p = new Person();
            //p.Alder = 10;
            //p.SkrivAlder();

            //bool res = Person.CheckAlder(43);


            int dda = LægSammen(10, 20);

            Test1();


            Test2(2000);

            int a = 10;

            Test2(a);

            int rrr = 1000;

            Test2(rrr);

            a = Metode4();

            // Statisk
            //System.IO.File.Delete("");


            //// Instans
            //System.IO.FileInfo f = new System.IO.FileInfo(@"c:\temp\test.txt");

            //f.Delete();

            Test6(5, false);
            Test6(5);

            double res2 = Test7(100);

            Metode1("", 2, true, "");
            Metode1(navn: "", alder: 2, land: "", erSmart: true);


            MinReturType res5 = Test10(5);

            FindFiler(@"c:\drivers");

            Person2 p2 = new Person2();

            p2.Navn  = "a";
            p2.Alder = 1;
        }
Exemplo n.º 5
0
        public static void Main(string[] args)
        {
            Test();
            int res = LægSammen(2, 2);

            Console.WriteLine(res);


            int u    = 10;
            int b    = 20;
            int res2 = LægSammen(u, b);

            Console.WriteLine(res2);
            Console.WriteLine(u);

            Metode1("a", 10, true);

            Metode1(alder: 10, erSmart: true, land: "DK", navn: "a");
            Metode1(alder: 10, erSmart: true, navn: "a");

            int res3 = LægSammen(5, 4, 32, 2);

            MinReturType res4 = TestF();

            var res5 = TestF1();

            int y = 0;



            Hund.Test1();

            Hund h = new Hund();

            h.Test2();


            PrintFiler("c:\\temp");
        }