Class Alphanumeric
- Namespace
- Cuemon
- Assembly
- Cuemon.Kernel.dll
Provides a set of alphanumeric constant and static fields that consists of both letters, numbers and other symbols (such as punctuation marks and mathematical symbols).
public static class Alphanumeric
- Inheritance
-
Alphanumeric
Examples
The following example demonstrates how to use the Alphanumeric class to access predefined character sets. It prints the available character ranges for digits, uppercase letters, hexadecimal characters, and punctuation marks.
using System;
using Cuemon;
namespace MyApp.CharacterSets;
public class AlphanumericExample
{
public void Demonstrate()
{
Console.WriteLine(Alphanumeric.Numbers); // "0123456789"
Console.WriteLine(Alphanumeric.UppercaseLetters); // "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
Console.WriteLine(Alphanumeric.Hexadecimal); // "0123456789ABCDEF"
Console.WriteLine(Alphanumeric.PunctuationMarks); // "!@#$%^&*()_-+=[{]};:<>|.,/?`~\"'"
}
}
Fields
Caret
Circumflex accent / Caret character.
public const string Caret = "^"
Field Value
CaretChar
Circumflex accent / Caret character.
public const char CaretChar = '^'
Field Value
CarriageReturn
Carriage-return character.
public const string CarriageReturn = "\r"
Field Value
CarriageReturnChar
Carriage-return character.
public const char CarriageReturnChar = '\r'
Field Value
Hexadecimal
A representation of a hexadecimal character set consisting of the numbers 0 to 9 and the letters A to F.
public const string Hexadecimal = "0123456789ABCDEF"
Field Value
Letters
A case sensitive representation of an alphabetic character set consisting of the letters Aa to Zz.
public const string Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
Field Value
LettersAndNumbers
A case sensitive representation of an alphanumeric character set consisting of the numbers 0 to 9 and the letters Aa to Zz.
public const string LettersAndNumbers = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
Field Value
Linefeed
Linefeed character.
public const string Linefeed = "\n"
Field Value
LinefeedChar
Linefeed character.
public const char LinefeedChar = '\n'
Field Value
LowercaseLetters
A lowercase representation of an alphabetic character set consisting of the letters a to z.
public const string LowercaseLetters = "abcdefghijklmnopqrstuvwxyz"
Field Value
NetworkPathReference
A network-path reference, e.g. two forward slashes (//).
public const string NetworkPathReference = "//"
Field Value
Numbers
A representation of a numeric character set consisting of the numbers 0 to 9.
public const string Numbers = "0123456789"
Field Value
PunctuationMarks
A representation of the most common punctuation marks consisting of the characters !@#$%^&*()_-+=[{]};:<>|.,/?`~"'..
public const string PunctuationMarks = "!@#$%^&*()_-+=[{]};:<>|.,/?`~\\\"'"
Field Value
Tab
Tab character.
public const string Tab = "\t"
Field Value
TabChar
Tab character.
public const char TabChar = '\t'
Field Value
UppercaseLetters
An uppercase representation of an alphabetic character set consisting of the letters A to Z.
public const string UppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
Field Value
WhiteSpace
A representation of the most common whitespace characters.
public const string WhiteSpace = "\t\n\v\f\r \u0085 \u2028\u2029 "