예제 #1
0
 /// <summary>
 /// Adapts a <see cref="IItemNode"/> 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 IItemNode item) => item.As <IVsHierarchyItem>();
예제 #2
0
 /// <summary>
 /// Adapts a <see cref="IItemNode"/> to a <see cref="ProjectItem"/>.
 /// </summary>
 /// <returns>The <see cref="ProjectItem"/> or <see langword="null"/> if conversion is not possible.</returns>
 public static ProjectItem AsProjectItem(this IItemNode item) => item.As <ProjectItem>();
예제 #3
0
 /// <summary>
 /// Adapts a <see cref="IItemNode"/> to an <see cref="VSProjectItem"/>.
 /// </summary>
 /// <returns>The <see cref="VSProjectItem"/> or <see langword="null"/> if conversion is not possible.</returns>
 public static VSProjectItem AsVsLangProjectItem(this IItemNode item) => item.As <VSProjectItem>();
예제 #4
0
 /// <summary>
 /// Adapts a <see cref="IItemNode"/> 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 IItemNode item) => item.As <IVsHierarchy>();
예제 #5
0
 internal static IRemovableNode AsRemovableNode(this IItemNode folder) =>
 folder.As <IRemovableNode>();
예제 #6
0
 internal static IDeletableNode AsDeletableNode(this IItemNode folder) =>
 folder.As <IDeletableNode>();