C# Class CodicExtension.StringExtensions

Show file Open project: codic-project/codic-vs-extension

Public Methods

Method Description
Truncate ( this value, int maxChars, string postfix = "..." ) : string

Private Methods

Method Description
ToSingleWordsSpace ( this text ) : string
TrimRestore ( this trimmedText, string originalText ) : string

Restores the beginning and end of string eliminated by trim using the start and the end of the reference string.

Method Details

Truncate() public static method

public static Truncate ( this value, int maxChars, string postfix = "..." ) : string
value this
maxChars int
postfix string
return string