Click or drag to resize

ValidationHelpers Methods

The ValidationHelpers type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetLength
Find length of a string. If string is null or empty, returns 0. Should never throw.
Public methodStatic memberValidateFieldsSet
Validates that fields are set. Will throw if anything is null or empty.
Public methodStatic memberValidateLength
Validates length of a string to be under a certain length. Will throw if string is too long or negative maxLen is provided.
If input string is null or empty, length is considered 0.
Top
See Also