bovender framework
C# framework that implements MVVM and more
Bovender.Extensions.StringExtensions Class Reference

Static Public Member Functions

static string TruncateWithEllipsis (this string s, int length)
 Truncates a string and adds three dots (ellipsis) so that the resulting string is at most "<paramref name="length"/>" characters long. More...
 

Detailed Description

Definition at line 25 of file StringExtensions.cs.

Member Function Documentation

static string Bovender.Extensions.StringExtensions.TruncateWithEllipsis ( this string  s,
int  length 
)
inlinestatic

Truncates a string and adds three dots (ellipsis) so that the resulting string is at most "<paramref name="length"/>" characters long.

Parameters
sString to truncate
lengthMaximum length of resulting string, including ellipsis; an exception is thrown if this is 5 or less.
Returns
String at most "<paramref name="length"/>" characters long.

Definition at line 35 of file StringExtensions.cs.


The documentation for this class was generated from the following file: