Example #1
0
        public CompositeValueIndexer(int index, IValue value, ICompositeValue parent)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            if (parent == null)
            {
                throw new ArgumentNullException(nameof(parent));
            }

            Index  = index;
            Value  = value;
            Parent = parent;
        }
Example #2
0
        public CompositeValueField(string name, IValue value, ICompositeValue parent)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            if (parent == null)
            {
                throw new ArgumentNullException(nameof(parent));
            }

            Name   = name;
            Value  = value;
            Parent = parent;
        }