-
Notifications
You must be signed in to change notification settings - Fork 20
Home
deepikats edited this page Jun 18, 2018
·
1 revision
public static string Truncate(string value, int length) { string result = value; if (value != null) // Skip empty string check for elucidation { result = value.Substring(0, Math.Min(value.Length, length)); } return result; }