public static bool ValidateParameter( ref string param, bool checkForNull, bool checkIfEmpty, bool checkForCommas, int maxSize )
Parameters
- param
- parameter to validate
- checkForNull
- If true parameter is checked for null
- checkIfEmpty
- If true parameter is checked for emptiness
- checkForCommas
- If true parameter is checked for commas
- maxSize
- The maximum size of the parameter
Return Value
true if parameter is validated, false otherwise