Table of Contents

Class StringHelper

Namespace
NuvTools.Common.Strings
Assembly
NuvTools.Common.dll

Provides utility methods for string operations.

public class StringHelper
Inheritance
StringHelper
Inherited Members
Extension Methods

Methods

RandomAlphaNumericString(int)

Generates a random alphanumeric string of the specified length.

public static string RandomAlphaNumericString(int length)

Parameters

length int

The desired length of the random string.

Returns

string

A random string consisting of uppercase letters (A-Z) and digits (0-9).

Remarks

This method uses uppercase letters and digits only. The generated string is suitable for generating simple identifiers or test data.