Пример #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 protected WebComponent()
 {
     VerifyTypeThrow(TagName, GetType());
     _shadow = new Shadow(this);
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="tagName">Component's custom tag name</param>
 protected WebComponent(string tagName) : base(tagName ?? throw new ArgumentNullException(nameof(tagName)))
 {
     VerifyTypeThrow(tagName, GetType());
     _shadow = new Shadow(this);
 }