StringExtensions.Truncate Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Truncate(string, int)

Trims a string after a specific length.

public static string Truncate(this string input, int length)

Parameters

input
string

Text to trim.

length
int

Number of characters to keep of the text.

Returns

string