StringExtensionsIsLength Method

Checks if string length satisfies minimum and maximum allowable char length. does not ignore leading and trailing white-space

Definition

Namespace: PCBI_CadanceFab_Import
Assembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 16.0.0.0 (16.0.0.0)
C#
public static bool IsLength(
	this string val,
	int minCharLength,
	int maxCharLength
)

Parameters

val  String
string to evaluate
minCharLength  Int32
minimum char length
maxCharLength  Int32
maximum char length

Return Value

Boolean
true if string satisfies minimum and maximum allowable length

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also