Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将不同数据类型的值存储在列表中并按原样检索它们,例如:
1. 5 2. True 3. PersonName 4. 0.325
是否可以?
(假设 C# 是语言)
您可以使用 aList<object>来存储值。在检索值时,您必须正确地转换它们。
List<object>