Table of Contents

Class StringExtensions

Namespace
JobFlow.Core.Infrastructure.Extensions
Assembly
JobFlow.Core.dll

String convenience extensions.

public static class StringExtensions
Inheritance
object
StringExtensions

Methods

Truncate(string, int)

Truncate a string to a maximum length. Shorter strings will be left unaffected.

public static string Truncate(this string str, int maxLength)

Parameters

str string
maxLength int

Returns

string