Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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);
        }