c# How to cast object to type dynamically?

前端 未结 0 1053
迷失自我
迷失自我 2021-01-30 06:28

In the following sample code, I want to set street property to a value dynamically:

public static dynamic Cast(dynamic obj, Type castTo) => Convert.ChangeType(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题