2011-04-19 40 views

回答

1

你的意思

Console.WriteLine(typeof(List<string>).GetGenericArguments()[0] == typeof(string)); 
1
YourList is List<TypeOfInterest> 

如果你想確保列表包含類的唯一變量,那麼你就需要檢查他們中的每一個。