Guest User

Untitled

a guest
Apr 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. namespace MyNamespace
  2. {
  3. [System.ComponentModel.DefaultBindingProperty("Name")]
  4. public class Person
  5. {
  6. public int ID { get; set; }
  7. public string Name { get; set; }
  8. public int Gender { get; set; }
  9. }
  10.  
  11. public class Family
  12. {
  13. public int ID { get; set; }
  14. public Person Father { get; set; }
  15. }
  16. }
  17.  
  18. public class Person
  19. {
  20. public int ID { get; set; }
  21. public string Name { get; set; }
  22. public int Gender { get; set; }
  23. public override string ToString()
  24. {
  25. return Name;
  26. }
  27. }
Add Comment
Please, Sign In to add comment