Exemple #1
0
        public Form1()
        {
            InitializeComponent();
            textBox1.Text = "Ticks:" + DateTime.Now.Ticks.ToString();
            var h = new Hellower1();

            ((Hellower1)h).HalloMethod = "Hallo Welt";
            var result = TestDateTime(DateTime.Now);

            TestInt(19);
            TestFloat(float.MaxValue);
            TestDouble(double.MaxValue);

            p.DoB  = DateTime.Now;
            p.Name = "Ralf Hientzsch-Schindlmeier";
            p.Id   = 1;
            p      = TestClass(p);
            point  = TestPoint();
            TestString("Ralf");
            TestBoxedInt(6);
            TestBoxedDateTime(DateTime.Now);
            TestObjectPerson(p);
        }
Exemple #2
0
 private Persion TestClass(Persion p)
 {
     Console.WriteLine(p);
     return(new Persion());
 }
Exemple #3
0
 private object TestObjectPerson(Persion persion)
 {
     return(persion);
 }