public Dictionary <EntityToken, IEnumerable <EntityToken> > GetParents(IEnumerable <EntityToken> entityTokens) { var result = new Dictionary <EntityToken, IEnumerable <EntityToken> >(); foreach (EntityToken entityToken in entityTokens) { var dataEntityToken = (DataEntityToken)entityToken; Type type = dataEntityToken.InterfaceType; if (type != typeof(IPackageServerSource)) { continue; } var newEntityToken = new PackageElementProviderPackageSourcesFolderEntityToken(); result.Add(entityToken, new EntityToken[] { newEntityToken }); } return(result); }
public Dictionary<EntityToken, IEnumerable<EntityToken>> GetParents(IEnumerable<EntityToken> entityTokens) { Dictionary<EntityToken, IEnumerable<EntityToken>> result = new Dictionary<EntityToken, IEnumerable<EntityToken>>(); foreach (EntityToken entityToken in entityTokens) { DataEntityToken dataEntityToken = entityToken as DataEntityToken; Type type = dataEntityToken.InterfaceType; if (type != typeof(IPackageServerSource)) continue; PackageElementProviderPackageSourcesFolderEntityToken newEntityToken = new PackageElementProviderPackageSourcesFolderEntityToken(); result.Add(entityToken, new EntityToken[] { newEntityToken }); } return result; }