Consider the following code
var currentType = Type.GetType("Some.Type, Some"); dynamic myDynamic = new System.Dynamic.ExpandoObject(); myDynamic.A = "A"; var objectInCorrectType = ???
How do I cast the dynamic to the currentType?
Aucun commentaire:
Enregistrer un commentaire