コード例 #1
0
 /// <summary>
 /// Gets whether a content element has a specific element attached.
 /// </summary>
 /// <typeparam name="TElement">The expected type of the content element.</typeparam>
 public static bool Has <TElement>(this ContentElement contentElement) where TElement : ContentElement =>
 contentElement.Has(typeof(TElement).Name);