AcTools.Utils.Helpers.StringExtension.SubstringExt C# (CSharp) Method

SubstringExt() private method

private SubstringExt ( [ s, int from ) : string
s [
from int
return string
        public static string SubstringExt([NotNull] this string s, int from) {
            if (from < 0) {
                from = s.Length - from;
            }

            if (from > s.Length) {
                return string.Empty;
            }

            return from <= 0 ? s : s.Substring(from);
        }