Beispiel #1
0
        public static void ShowPeople(People tParameter)
        {
            Console.WriteLine("This is {0},parameter={1},type={2}",
                              typeof(GenericMethod), tParameter.GetType().Name, tParameter.ToString());
            //((People)tParameter).Id
            //tParameter.
            Console.WriteLine("id={0} name={1}", tParameter.Id, tParameter.Name);
            tParameter.Hi();

            //tParameter.Work();
            //tParameter.Id
            //tParameter.Name
        }
Beispiel #2
0
 public static void ShowPeople(People PParameter)
 {
     Console.WriteLine("这里是Common,ShowInt,parameter={0},parameter={1}", PParameter, PParameter.GetType());
 }