コード例 #1
0
        public static IndirectSelfReferringObject GetSampleInstance()
        {
            var parent = new IndirectSelfReferringObject
            {
                ParentDescription = "I'm Parent",
            };

            var child = new ChildReferrenceType
            {
                ChildDescription = "I'm Child",
            };

            parent.Child = child;
            //child.Parent = parent;
            return parent;
        }
コード例 #2
0
        public static IndirectSelfReferringObject GetSampleInstance()
        {
            var parent = new IndirectSelfReferringObject
            {
                ParentDescription = "I'm Parent",
            };


            var child = new ChildReferrenceType
            {
                ChildDescription = "I'm Child",
            };

            parent.Child = child;
            //child.Parent = parent;
            return(parent);
        }