AssemblyCSharp.StringExtensions.Limit C# (CSharp) Method

Limit() public static method

public static Limit ( this self, int maxLength ) : string
self this
maxLength int
return string
        public static string Limit(this string self, int maxLength)
        {
            return self.Substring(0, Math.Min(maxLength, self.Length));
        }