示例#1
0
        internal void AddValidation( string propertyName, ValidationBinder binder )
        {
            List<ValidationBinder> bindList;
            if( !ValidationMap.TryGetValue( propertyName, out bindList ) )
            {
                bindList = new List<ValidationBinder>();
                ValidationMap.Add( propertyName, bindList );
            }

            bindList.Add( binder );
        }
示例#2
0
        internal void AddValidation(string propertyName, ValidationBinder binder)
        {
            List <ValidationBinder> bindList;

            if (!ValidationMap.TryGetValue(propertyName, out bindList))
            {
                bindList = new List <ValidationBinder>();
                ValidationMap.Add(propertyName, bindList);
            }

            bindList.Add(binder);
        }