Method ValidateLength
ValidateLength(String, Int32, Int32, String)
Validates a string length falls within a specific range.
Declaration
public static string ValidateLength(this string value, int min, int max, string paramName)
Parameters
public static string ValidateLength(this string value, int min, int max, string paramName)
System.String | value | String to validate. |
System.Int32 | min | Minimum allowed number of characters in the string. |
System.Int32 | max | Maximum allowed number of characters in the string. |
System.String | paramName | Name of the parameter for the exception message if |
Returns
System.String |
|