Esempio n. 1
0
 /// <inheritdoc />
 public virtual IValueProvider Filter(BindingSource bindingSource)
 {
     if (bindingSource.CanAcceptDataFrom(BindingSource))
     {
         return(this);
     }
     else
     {
         return(null);
     }
 }
Esempio n. 2
0
        /// <inheritdoc />
        public virtual IValueProvider Filter(BindingSource bindingSource)
        {
            if (bindingSource == null)
            {
                throw new ArgumentNullException(nameof(bindingSource));
            }

            if (bindingSource.CanAcceptDataFrom(BindingSource))
            {
                return(this);
            }
            else
            {
                return(null);
            }
        }