Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace MyNamespace
- {
- [System.ComponentModel.DefaultBindingProperty("Name")]
- public class Person
- {
- public int ID { get; set; }
- public string Name { get; set; }
- public int Gender { get; set; }
- }
- public class Family
- {
- public int ID { get; set; }
- public Person Father { get; set; }
- }
- }
- public class Person
- {
- public int ID { get; set; }
- public string Name { get; set; }
- public int Gender { get; set; }
- public override string ToString()
- {
- return Name;
- }
- }
Add Comment
Please, Sign In to add comment