Table of Contents

Alphanumeric Class

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Alphanumeric.cs

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

Name Description
Caret

Circumflex accent / Caret character.

CaretChar

Circumflex accent / Caret character.

CarriageReturn

Carriage-return character.

CarriageReturnChar

Carriage-return character.

Hexadecimal

A representation of a hexadecimal character set consisting of the numbers 0 to 9 and the letters A to F.

Letters

A case sensitive representation of an alphabetic character set consisting of the letters Aa to Zz.

LettersAndNumbers

A case sensitive representation of an alphanumeric character set consisting of the numbers 0 to 9 and the letters Aa to Zz.

Linefeed

Linefeed character.

LinefeedChar

Linefeed character.

LowercaseLetters

A lowercase representation of an alphabetic character set consisting of the letters a to z.

NetworkPathReference

A network-path reference, e.g. two forward slashes (//).

Numbers

A representation of a numeric character set consisting of the numbers 0 to 9.

PunctuationMarks

A representation of the most common punctuation marks consisting of the characters !@#$%^&*()_-+=[{]};:<>|.,/?`~"'..

Tab

Tab character.

TabChar

Tab character.

UppercaseLetters

An uppercase representation of an alphabetic character set consisting of the letters A to Z.

WhiteSpace

A representation of the most common whitespace characters.