C# dynamic type conversions

前端 未结 4 1739
别那么骄傲
别那么骄傲 2020-12-14 05:09

We have 2 objects A & B: A is system.string and B is some .net primitive type (string,int etc). we want to write generic code to assign the converted (parsed) value of B

4条回答
  •  -上瘾入骨i
    2020-12-14 05:17

    There is an overview of type conversions at MSDN where you can get more info about the topic. I've found it useful.

提交回复
热议问题