コード例 #1
0
 /// <summary>
 /// Adapts a <see cref="ISolutionFolderNode"/> to an <see cref="IVsHierarchy"/>.
 /// </summary>
 /// <returns>The <see cref="IVsHierarchy"/> or <see langword="null"/> if conversion is not possible.</returns>
 public static IVsHierarchy AsVsHierarchy(this ISolutionFolderNode folder) => folder.As <IVsHierarchy>();
コード例 #2
0
 /// <summary>
 /// Adapts a <see cref="ISolutionFolderNode"/> to an <see cref="IVsHierarchyItem"/>.
 /// </summary>
 /// <returns>The <see cref="IVsHierarchyItem"/> or <see langword="null"/> if conversion is not possible.</returns>
 public static IVsHierarchyItem AsVsHierarchyItem(this ISolutionFolderNode folder) => folder.As <IVsHierarchyItem>();