Example #1
0
        public static void Main(string[] args)
        {
            int i = 10;
            Console.WriteLine (i.IsEven ());
            Console.WriteLine (DateTime.Now.ToString ("dd/MM/yyyy"));
            Console.WriteLine (DateTime.Now.ToMyString ());

            ServerEmp sObj = new ServerEmp { EmpID = "405454", EmpName = "Raghu" };

            Emp obj = sObj.ParseToEmp ();

            Console.WriteLine (obj.GetEmpInfo());
        }
Example #2
0
        public static void Main(string[] args)
        {
            int i = 10;

            Console.WriteLine(i.IsEven());
            Console.WriteLine(DateTime.Now.ToString("dd/MM/yyyy"));
            Console.WriteLine(DateTime.Now.ToMyString());

            ServerEmp sObj = new ServerEmp {
                EmpID = "405454", EmpName = "Raghu"
            };

            Emp obj = sObj.ParseToEmp();

            Console.WriteLine(obj.GetEmpInfo());
        }