/// <summary> /// Auxiliar used in GetValue methods since the list does not deal well with unlimited sized lines. /// </summary> /// <param name="src">Source string.</param> /// <returns>The source string limited in the number of lines.</returns> internal static object LimitString(object src) { if (!(src is string srcString)) { return(src); } return(HostUtilities.GetMaxLines(srcString, 10)); }
internal static object LimitString(object src) { string source = src as string; if (source == null) { return(src); } return(HostUtilities.GetMaxLines(source, 10)); }