If I have Json object that I want to map to a concrete object, how would I do that?
public class Student
{
public string Name { get; set; }
}
class Program
{
static void Main(string[] args)
{
var o = new JObject {{"Name", "Jim"}};
Student student = new Student();
student.InjectFrom(o);
}
}
this results in null. When I expected "Jim" to be set.