Esempio n. 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);
		}
Esempio n. 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);
		}
 public PropertyBindingBuilder(PropertyBindingCollection <TModel, TView> bindingCollection, string propertyName, Func <TModel, TView, TModelValue> getter)
     : base(bindingCollection, propertyName, getter)
 {
 }