예제 #1
0
        public override int GetHashCode()
        {
            var hashCode = -2115335014;

            hashCode = hashCode * -1521134295 + IsConst.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <ReadOnlyCollection <CppTypeName> > .Default.GetHashCode(TypeParam);

            hashCode = hashCode * -1521134295 + EqualityComparer <ReadOnlyCollection <CppPtrType> > .Default.GetHashCode(PtrInfos);

            return(hashCode);
        }
예제 #2
0
        public override int GetHashCode()
        {
            var hashCode = -1034007683;

            hashCode = hashCode * -1521134295 + EqualityComparer <Variable> .Default.GetHashCode(ReturnType);

            hashCode = hashCode * -1521134295 + EqualityComparer <List <Variable> > .Default.GetHashCode(InputTypes);

            hashCode = hashCode * -1521134295 + EqualityComparer <Class> .Default.GetHashCode(OwnerClass);

            hashCode = hashCode * -1521134295 + IsConst.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            return(hashCode);
        }
예제 #3
0
        public override int GetHashCode()
        {
            var hashCode = -2115335014;

            hashCode = hashCode * -1521134295 + IsConst.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            if (TypeParam != null)
            {
                foreach (var item in TypeParam)
                {
                    hashCode = hashCode * -1521134295 + EqualityComparer <CppTypeName> .Default.GetHashCode(item);
                }
            }
            if (PtrInfos != null)
            {
                foreach (var item in PtrInfos)
                {
                    hashCode = hashCode * -1521134295 + EqualityComparer <CppPtrType> .Default.GetHashCode(item);
                }
            }
            return(hashCode);
        }