Пример #1
0
        public ParameterBinding(string name, Type parameterType, IList <PropertyBinding> customProperties)
        {
            if (name == null)
            {
                throw ExceptionBuilder.ArgumentNull("name");
            }

            if (parameterType == null)
            {
                throw ExceptionBuilder.ArgumentNull("parameterType");
            }

            _name             = ExtractParameterName(name);
            _parameterType    = parameterType;
            _customProperties = (customProperties == null) ? null : new PropertyBindingCollection(customProperties);
        }
Пример #2
0
        public ConstantBinding(string name, object value, IList <PropertyBinding> customProperties)
        {
            if (name == null)
            {
                throw ExceptionBuilder.ArgumentNull("name");
            }

            if (value == null)
            {
                throw ExceptionBuilder.ArgumentNull("value");
            }

            _name             = name;
            _value            = value;
            _valueType        = value.GetType();
            _customProperties = (customProperties == null) ? null : new PropertyBindingCollection(customProperties);
        }