How do I create a Dictionary that holds different types in C#

前端 未结 8 437
庸人自扰
庸人自扰 2020-12-04 21:38

I need some sort of way to store key/value pairs where the value can be of different types.

So I like to do:

 int i = 12;
 string s = \"test\";
 doub         


        
8条回答
提交回复
热议问题