static void Main(string[] args) { var parent = new Person { Name = "John" }; var child = new Person { Name = "Chris" }; var child2 = new Person { Name = "Mary" }; var relationships = new Relationships(); relationships.AddParentAndChild(parent, child); relationships.AddParentAndChild(parent, child2); new Research(relationships); }
public static void Search() { var parent = new Person { Name = "John" }; var child1 = new Person { Name = "Chris" }; var child2 = new Person { Name = "Mary" }; var relationships = new Relationships(); relationships.AddParentAndChild(parent, child1); relationships.AddParentAndChild(parent, child2); new Research(relationships); }
static void Main(string[] args) { var parent = new Person { Name = "John" }; var child1 = new Person { Name = "Chris" }; var child2 = new Person { Name = "Mary" }; Relationships relations = new Relationships(); relations.AddParentAndChild(parent, child1); relations.AddParentAndChild(parent, child2); Console.ReadKey(); }
static void Main(string[] args) { var parent = new Person { Name = "John" }; var child1 = new Person { Name = "Chris" }; var child2 = new Person { Name = "Matt" }; // low-level module var relationships = new Relationships(); relationships.AddParentAndChild(parent, child1); relationships.AddParentAndChild(parent, child2); new Research(relationships); }