在C#中,为什么不能将列表<string>对象存储在列表<Object>变量中?
List<string> sl = new List<string>();List<object> ol;ol = sl;
System.Collections.Generic.List<string>
System.Collections.Generic.List<object>
List<string> sl = new List<string>();List<object> ol;ol = (List<object>)sl;
System.Collections.Generic.List<string>
System.Collections.Generic.List<object>