Пример #1
0
        private static bool HasAllProperties(NuGetArtifactGroup group, IEnumerable <KeyValuePair <string, string> > properties)
        {
            HashSet <KeyValuePair <string, string> > groupProperties = new HashSet <KeyValuePair <string, string> >(group.Properties);
            HashSet <KeyValuePair <string, string> > checkProperties = new HashSet <KeyValuePair <string, string> >(properties);

            return(groupProperties.IsSupersetOf(checkProperties));
        }
        private static bool HasAllProperties(NuGetArtifactGroup group, IEnumerable<KeyValuePair<string, string>> properties)
        {
            HashSet<KeyValuePair<string, string>> groupProperties = new HashSet<KeyValuePair<string, string>>(group.Properties);
            HashSet<KeyValuePair<string, string>> checkProperties = new HashSet<KeyValuePair<string, string>>(properties);

            return groupProperties.IsSupersetOf(checkProperties);
        }