and i want to assign it to class property of type T
I have property name of class so what i tried it PropertyInfo property.SetValue(obj of type T,some object)
(no need for generic T or dynamic if you know the actual type of the property) DeserializeObject<dynamic> will actually give you a JToken or JObject and SetValue won't convert JObject to the correct type of the property
I don't know which type will come,
Обсуждают сегодня