示例#1
0
        public void Add(BindingContainerExtender bindingExtender)
        {
            if (bindingExtender is null)
            {
                throw new ArgumentNullException(nameof(bindingExtender));
            }

            _bindingExtenders.Add(
                bindingExtender
                );
        }
示例#2
0
        public ExtenderAndTypePair(
            BindingContainerExtender bindingExtender,
            DetectedConstructorArgument constructorArgument
            )
        {
            if (bindingExtender is null)
            {
                throw new ArgumentNullException(nameof(bindingExtender));
            }

            if (constructorArgument is null)
            {
                throw new ArgumentNullException(nameof(constructorArgument));
            }

            BindingExtender     = bindingExtender;
            ConstructorArgument = constructorArgument;
        }