internal static DotNetProjectSubtypeNode GetDotNetProjectSubtype(string typeGuids) { if (!string.IsNullOrEmpty(typeGuids)) { Type ptype = null; DotNetProjectSubtypeNode foundNode = null; foreach (string guid in typeGuids.Split(';')) { string tguid = guid.Trim(); foreach (DotNetProjectSubtypeNode st in GetItemSubtypeNodes()) { if (st.SupportsType(tguid)) { if (ptype == null || ptype.IsAssignableFrom(st.Type)) { ptype = st.Type; foundNode = st; } } } } return(foundNode); } return(null); }
internal static DotNetProjectSubtypeNode GetDotNetProjectSubtype(IEnumerable <string> typeGuids) { Type ptype = null; DotNetProjectSubtypeNode foundNode = null; foreach (string guid in typeGuids) { foreach (DotNetProjectSubtypeNode st in GetItemSubtypeNodes()) { if (st.SupportsType(guid)) { if (ptype == null || ptype.IsAssignableFrom(st.Type)) { ptype = st.Type; foundNode = st; } } } } return(foundNode); }