Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Side by Side Diff: obsolete/Microsoft.VisualStudio.Project/Automation/OAReferenceFolderItem.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /// Copyright (c) Microsoft Corporation. All rights reserved.
2
3 using System;
4 using System.Collections.Generic;
5 using System.Diagnostics.CodeAnalysis;
6 using System.Runtime.InteropServices;
7
8 namespace Microsoft.VisualStudio.Project.Automation
9 {
10 /// <summary>
11 /// Contains OAReferenceItem objects
12 /// </summary>
13 [SuppressMessage("Microsoft.Interoperability", "CA1405:ComVisibleTypeBas eTypesShouldBeComVisible")]
14 [ComVisible(true), CLSCompliant(false)]
15 public class OAReferenceFolderItem : OAProjectItem<ReferenceContainerNod e>
16 {
17 #region ctors
18 public OAReferenceFolderItem(OAProject project, ReferenceContain erNode node)
19 : base(project, node)
20 {
21 }
22
23 #endregion
24
25 #region overridden methods
26 /// <summary>
27 /// Returns the project items collection of all the references d efined for this project.
28 /// </summary>
29 public override EnvDTE.ProjectItems ProjectItems
30 {
31 get
32 {
33 return new OANavigableProjectItems(this.Project, this.GetListOfProjectItems(), this.Node);
34 }
35 }
36
37
38 #endregion
39
40 #region Helper methods
41 private List<EnvDTE.ProjectItem> GetListOfProjectItems()
42 {
43 List<EnvDTE.ProjectItem> list = new List<EnvDTE.ProjectI tem>();
44 for(HierarchyNode child = this.Node.FirstChild; child != null; child = child.NextSibling)
45 {
46 ReferenceNode node = child as ReferenceNode;
47
48 if(node != null)
49 {
50 list.Add(new OAReferenceItem(this.Projec t, node));
51 }
52 }
53
54 return list;
55 }
56 #endregion
57 }
58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698