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

            AddChildren(children);                       
        }
Esempio n. 2
0
        public CodeRef(Code code)
        {
            Contract.AssertNotNull(code, "code");

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

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

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