public bool isValid(validoctor.Control.iControl ctl) { bool returnValue = default(bool); if (ctl != null) { returnValue = (ctl.getValue() != null); } else { exceptionFactory.ThrowNullArgumentException("ctl"); } return(returnValue); }
public bool isValid(validoctor.Control.iControl ctl) { bool returnValue = default(bool); if (ctl != null) { string value = ctl.getValue().ToString(); returnValue = value != String.Empty; } else { exceptionFactory.ThrowNullArgumentException("ctl"); } return(returnValue); }
public bool isValid(validoctor.Control.iControl ctl) { bool returnValue = default(bool); if (ctl != null) { object obj = ctl.getValue(); if (obj != null) { returnValue = !String.IsNullOrEmpty(obj.ToString()); } else { returnValue = false; } } else { exceptionFactory.ThrowNullArgumentException("ctl"); } return(returnValue); }