Beispiel #1
0
Datei: Html.cs Projekt: NLADP/ADF
 public static bool TryParse(string s, IFormatProvider provider, out Html result)
 {
     return TryParse(s, out result);
 }
Beispiel #2
0
Datei: Html.cs Projekt: NLADP/ADF
        /// <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;
        }