MvcValidatorToolkit/ValidationSet.cs
/// <summary>
/// Initializes the specified validator with the number of used validator types and the
/// current validation set.
/// </summary>
Initializes the specified validator with the number of used validator types and the
current validation set.
Initializes the specified validator with the number of used validator types and the current validation set .
void InitialzeValidator(Validator validator)
		{
			if(UsedTypes == null)
				UsedTypes = new Dictionary<Type, int>();
			Type vt = validator.GetType();
			if(UsedTypes.ContainsKey(vt))
				UsedTypes[vt] += 1;
			else
				UsedTypes.Add(vt, 1);
			validator.Initialize(this, UsedTypes[vt]);
		}
void InitialzeValidator ( Validator validator ) { if ( UsedTypes == null ) UsedTypes = new Dictionary < Type , int > ( ) ; Type vt = validator . GetType ( ) ; if ( UsedTypes . ContainsKey ( vt ) ) UsedTypes [ vt ] += 1 ; else UsedTypes . Add ( vt , 1 ) ; validator . Initialize ( this , UsedTypes [ vt ] ) ; }
Initializes the specified validator with the number of used validator types and the
current validation set.
Initializes the specified validator with the number of used validator types and the current validation set .
// Stores the number of same validator types (e.g. used in  // ValidatesScriptMethod)
validator
Validator