C# Class TrainNotifier.Common.StringExtensions

ファイルを表示 Open project: blueghostuk/trainnotifier-server

Public Methods

Method Description
Truncate ( this value, int maxChars ) : string

Truncates the string to the max length. If the string is longer than maxChars then the string is returned at maxChars -3 length with ... appended

Method Details

Truncate() public static method

Truncates the string to the max length. If the string is longer than maxChars then the string is returned at maxChars -3 length with ... appended
public static Truncate ( this value, int maxChars ) : string
value this string to truncate
maxChars int max number of characters to return
return string