Castle.MonoRail.Framework.Helpers.FormHelper.CheckboxList.CheckboxList C# (CSharp) Method

CheckboxList() public method

Initializes a new instance of the CheckboxList class.
public CheckboxList ( FormHelper helper, string target, object initialSelectionSet, IEnumerable dataSource, IDictionary attributes ) : System
helper FormHelper The helper.
target string The object to get the value from and to be based on to create the element name.
initialSelectionSet object The initial selection set.
dataSource IEnumerable The set of available elements
attributes IDictionary Attributes for the FormHelper method and for the html element it generates
return System
			public CheckboxList(FormHelper helper, string target,
								object initialSelectionSet, IEnumerable dataSource, IDictionary attributes)
			{
				if (dataSource == null) throw new ArgumentNullException("dataSource");

				this.helper = helper;
				this.target = target;
				this.attributes = attributes ?? new HybridDictionary(true);
				
				operationState = SetOperation.IterateOnDataSource(initialSelectionSet, dataSource, attributes);
				enumerator = operationState.GetEnumerator();
			}