C# Class TrainNotifier.Common.StringExtensions

Afficher le fichier Open project: blueghostuk/trainnotifier-server

Méthodes publiques

Méthode 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 méthode

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
Résultat string