27 using System.Collections.Generic;
28 using System.Collections.ObjectModel;
29 using System.Diagnostics;
32 namespace SiliconStudio.Core.VisualStudio
37 [DebuggerDisplay(
"Count = {Count}")]
49 if (container == null)
50 throw new ArgumentNullException(
"container");
85 return this.FirstOrDefault(item => string.Compare(item.FullName, projectFullName, StringComparison.InvariantCultureIgnoreCase) == 0);
95 return (Contains(guid)) ?
this[guid] : null;
103 Sort((p1, p2) => StringComparer.InvariantCultureIgnoreCase.Compare(p1.FullName, p2.FullName));
106 public void Sort(Comparison<Project> comparer)
108 var tempList =
new List<Project>(
this);
109 tempList.Sort(comparer);
112 this.AddRange(tempList);
123 base.InsertItem(index,
new Project(solution, item));
129 base.SetItem(index,
new Project(solution, item));
A project referenced by a VisualStudio solution.
override void InsertItem(int index, Project item)
override Guid GetKeyForItem(Project item)
void Sort()
Sorts this instance.
Project FindByFullName(string projectFullName)
Finds a project by its full name.
override void SetItem(int index, Project item)
void Sort(Comparison< Project > comparer)
Project FindByGuid(Guid guid)
Finds a project by its unique identifier.