// Do not check for null type here to handle the callback attribute case
 internal CallbackValidator(ValidatorCallback callback) {
     if (callback == null) {
         throw new ArgumentNullException("callback");
     }
     _type = null;
     _callback = callback;
 }
 public CallbackValidator(Type type, ValidatorCallback callback) : this(callback)
 {
     if (type == null)
     {
         throw new ArgumentNullException("type");
     }
     this._type = type;
 }
 public CallbackValidator(Type type, ValidatorCallback callback) : this(callback)
 {
     if (type == null)
     {
         throw new ArgumentNullException("type");
     }
     this._type = type;
 }
Example #4
0
 // Do not check for null type here to handle the callback attribute case
 internal CallbackValidator(ValidatorCallback callback)
 {
     if (callback == null)
     {
         throw new ArgumentNullException(nameof(callback));
     }
     _type     = null;
     _callback = callback;
 }
 internal CallbackValidator(ValidatorCallback callback)
 {
     if (callback == null)
     {
         throw new ArgumentNullException("callback");
     }
     this._type     = null;
     this._callback = callback;
 }
Example #6
0
        public SkipDefaultValueCallbackValidator(Type type, ValidatorCallback callback) : this(callback)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            _type = type;
        }
Example #7
0
        // Do not check for null type here to handle the callback attribute case
        public SkipDefaultValueCallbackValidator(ValidatorCallback callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException("callback");
            }

            _type     = null;
            _callback = callback;
        }
Example #8
0
 public CallbackValidator(Type type, ValidatorCallback callback)
 {
     _type     = type;
     _callback = callback;
 }
		public CallbackValidator (Type type, ValidatorCallback callback)
		{
			this.type = type;
			this.callback = callback;
		}
Example #10
0
 // Do not check for null type here to handle the callback attribute case
 internal CallbackValidator(ValidatorCallback callback !!)
 {
 public CallbackValidator(Type type, ValidatorCallback callback)
 {
 }
 public CallbackValidator(Type type, ValidatorCallback callback)
 {
     this.type     = type;
     this.callback = callback;
 }
 public CallbackValidator(Type type, ValidatorCallback callback)
 {
 }
Example #14
0
 // Do not check for null type here to handle the callback attribute case
 internal CallbackValidator(ValidatorCallback callback)
 {
     if (callback == null) throw new ArgumentNullException(nameof(callback));
     _type = null;
     _callback = callback;
 }
Example #15
0
 public CallbackValidator(Type type, ValidatorCallback callback) : this(callback)
 {
     if (type == null) throw new ArgumentNullException(nameof(type));
     _type = type;
 }