Exemple #1
0
        internal static int Combine <TKey, TValue>(ImmutableDictionary <TKey, TValue> dictionary)
        {
            var hashCode = new RoslynHashCode();

            Combine(dictionary, ref hashCode);
            return(hashCode.ToHashCode());
        }
Exemple #2
0
        internal static int Combine <T>(ImmutableStack <T> stack)
        {
            var hashCode = new RoslynHashCode();

            Combine(stack, ref hashCode);
            return(hashCode.ToHashCode());
        }
Exemple #3
0
        internal static int Combine <T>(ImmutableHashSet <T> set)
        {
            var hashCode = new RoslynHashCode();

            Combine(set, ref hashCode);
            return(hashCode.ToHashCode());
        }
Exemple #4
0
        internal static int Combine <T>(ImmutableArray <T> array)
        {
            var hashCode = new RoslynHashCode();

            Combine(array, ref hashCode);
            return(hashCode.ToHashCode());
        }