I have a byte array and need to convert that to a list of an object. Say the byte array has this
[{name:'ABC',DOB:'01-01-2020'},{name:'XYZ',DOB:'01-03-2020'}]
I have a class
public class sample{
public string name {get; set;}
public DateTime DOB {get; set;}
}
I need to get the data from the byte array as a list of the class sample List<Sample>
How can I achieve this?