Simple string extension to determine if the string contains digits.
Namespace:
Cloudster.Samples.TextAssembly: Cloudster.Samples.Text.Role (in Cloudster.Samples.Text.Role.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static bool ContainsDigit( this string str ) |
Visual Basic (Declaration) |
---|
<ExtensionAttribute> _ Public Shared Function ContainsDigit ( _ str As String _ ) As Boolean |
Visual C++ |
---|
[ExtensionAttribute] public: static bool ContainsDigit( String^ str ) |
Parameters
- str
- Type: System..::.String
String to look up.