Exemple #1
0
 public static bool TryParse(string s, IFormatProvider provider, out Html result)
 {
     return TryParse(s, out result);
 }
Exemple #2
0
        /// <summary>
        /// Tries to parse the supplied string into the supplied <see cref="Html"/> object.
        /// </summary>
        /// <param name="s">The string to parse.</param>
        /// <param name="result">The <see cref="Html"/> object.</param>
        /// <returns>True if the parsing is successful, false otherwise.</returns>
        public static bool TryParse(string s, out Html result)
        {
            result = string.IsNullOrEmpty(s) ? Empty : new Html(s);

            return true;
        }