Exemple #1
0
        /// <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));
        }
Exemple #2
0
        internal static object LimitString(object src)
        {
            string source = src as string;

            if (source == null)
            {
                return(src);
            }
            return(HostUtilities.GetMaxLines(source, 10));
        }