示例#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>();