Hi karabo,
I agree with hereafter about using the as keyword, cast Subjects property to an array and then you can use LINQ to do any queries. Code looks like the following.
Subject sub = new Subject();
var array = sub.Subjects as List<SomeClass>;
if (array != null)
{
}
class Subject
{
public string Id { get; set; }
public string Name { get; set; }
public string Surname { get; set; }
public string StudentNo { get; set; }
public object Subjects { get; set; }
}
If I have any misunderstanding, please post more information about your scenario.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
No comments:
Post a Comment