Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HtmlSmartyPantRenderer"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <exception cref="System.ArgumentNullException"></exception>
 public HtmlSmartyPantRenderer(SmartyPantOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     this.options = options;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmartyPantsExtension"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public SmartyPantsExtension(SmartyPantOptions options)
 {
     Options = options ?? new SmartyPantOptions();
 }