示例#1
0
        public CodeRef(Code code, params CodeRef[] children)
            : this(code)
        {
            Contract.AssertNotNull(children, "children");

            AddChildren(children);                       
        }
示例#2
0
        public CodeRef(Code code)
        {
            Contract.AssertNotNull(code, "code");

            CodeId = code.Id;
            CodeListRef = new CodeListRef(code.CodeList, null);
        }
示例#3
0
        public CodeRef(Code code, Func<IEnumerable<Code>> funcCodeRef)
            : this(code)
        {
            Contract.AssertNotNull(funcCodeRef, "funcCodeRef");  

            var list = CreateList(funcCodeRef());
            AddChildren(list);
        }
示例#4
0
        public CodeRef(Code code, IEnumerable<Code> children)
            : this(code)
        {
            Contract.AssertNotNull(children, "children");

            var list = CreateList(children);
            AddChildren(list);
        }