예제 #1
0
 /// <summary>
 /// Returns Site root node.
 /// </summary>
 /// <typeparam name="T">Type of Site root node to return.</typeparam>
 /// <param name="node">The navigation node.</param>
 /// <returns>Site root node.</returns>
 public static T GetRoot <T>(this INavigationNode node) where T : class, IRootNode
 => node?.AncestorOrSelf <T>(1);