I have a function that returns an object:
public PathDetailsMessage GetDataFromDatabase()
{
PathDetailsMessage pathDetailsMessage = new PathDetailsMessage();
pathDetailsMessage.MessageTypeVersion = "5.3";
PlannedJourneyLocation plannedJourneyLocation = new PlannedJourneyLocation();
plannedJourneyLocation.CountryCodeISO.Value = "RO";
return pathDetailsMessage;
}
I have two public partial classes: PathDetailsMessage
and PlannedJourneyLocation
.
To test, I have the following code:
static void Main(string[] args)
{
PathDetailsBLL train = new PathDetailsBLL();
PathDetailsMessage pdm = train.GetDataFromDatabase();
}
Using Console.Write(), I can see the value of MessageTypeVersion
but I can't see the value from object plannedJourneyLocation
.
Can you help me?
Thanks.