TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kumar Ravishankar
NA
437
7.9k
I have nested structure kind of class file
Mar 8 2018 5:29 AM
public class TravelDetails
{
public TravelDetails()
{
}
public class Individual
{
public class RiskDetails
{
public bool IsIndianCitizen { get; set; }
public bool IsOverSeasCitizen { get; set; }
public bool IsResidingInIndia { get; set; }
}
}
public class Individual
{
public class IndividualNew
{
public string PreExistDiseaseID { get; set; }
public bool IsVisitingUSACanada { get; set; }
public string VisitingCountriesID { get; set; }
}
}
public class Accessing
{
public class AccessingAgain
{
public string PreExistDiseaseID { get; set; }
public bool IsVisitingUSACanada { get; set; }
public string VisitingCountriesID { get; set; }
public DateTime JourneyStartDate { get; set; }
}
}
}
I have above kind of class stracture , so can I access properties by createting object of TravelDetails class, and properties should be assign as per class stracture
Reply
Answers (
5
)
Get properties from dynamic classes
How to get the contents between two same nodes?