none
你好: RRS feed

答案

  • 你好:

    有很多方法可以实现这个功能,下面的代码用的是linq,你可以参考下

    object[] data = { 1, "tow", 3, 4, "five" };
    
                var query = data.OfType<int>();
    
                foreach(var item in query)
                {
                    Console.WriteLine(item);
                }
    
                Console.Read();


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.




    • 已标记为答案 Jonny_D 2015年3月11日 8:40
    2015年3月3日 8:26