Exemple #1
0
 int IVsSolution.GetProjectEnum(uint enumFlags, ref Guid enumOnlyThisType, out IEnumHierarchies enumHierarchies)
 {
     throw new NotImplementedException();
 }
Exemple #2
0
 public int GetProjectEnum(uint grfEnumFlags, ref Guid rguidEnumOnlyThisType, out IEnumHierarchies ppenum)
 {
     ppenum = new MockEnumHierarchies(_projects);
     return VSConstants.S_OK;
 }
 public int Clone(out IEnumHierarchies ppenum) {
     ppenum = new ProjectEnum(_projects);
     return VSConstants.S_OK;
 }
        public int GetProjectEnum(uint grfEnumFlags, ref Guid rguidEnumOnlyThisType, out IEnumHierarchies ppenum) {
            __VSENUMPROJFLAGS flags = (__VSENUMPROJFLAGS)grfEnumFlags;

            ProjectInfo[] projects;
            if (flags.HasFlag(__VSENUMPROJFLAGS.EPF_MATCHTYPE)) {
                var guid = rguidEnumOnlyThisType;
                projects = _projects.Values.Where(x => x.ProjectGuid == guid).ToArray();
            } else if (flags.HasFlag(__VSENUMPROJFLAGS.EPF_ALLPROJECTS)) {
                projects = _projects.Values.ToArray();
            } else {
                throw new NotImplementedException();
            }

            ppenum = new ProjectEnum(projects);
            return VSConstants.S_OK;
        }
		public int GetProjectEnum(uint grfEnumFlags, ref Guid rguidEnumOnlyThisType, out IEnumHierarchies ppenum)
		{
			ppenum = null;
			return VSConstants.E_NOTIMPL;
		}
 /// <summary>
 /// The clone.
 /// </summary>
 /// <param name="ppenum">
 /// The ppenum.
 /// </param>
 /// <returns>
 /// The clone.
 /// </returns>
 public int Clone(out IEnumHierarchies ppenum)
 {
     ppenum = new MockEnumHierarchies(this._projects);
     return VSConstants.S_OK;
 }