Created
April 15, 2016 08:05
-
-
Save beachside-project/a6da7046493a2c02fe17e0df3b8b41e2 to your computer and use it in GitHub Desktop.
JsonDemo - person1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public int Age { get; set; } | |
public string[] Hobbies{ get; set; } | |
public List<Phone> Phones { get; set; } | |
public string FullName => $"{FirstName} {LastName}"; | |
} | |
public class Phone | |
{ | |
public string PhoneNumber { get; set; } | |
public string ModelName { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment