예제 #1
0
파일: HqlKey.cs 프로젝트: elliottmatt/hqlcs
        ///////////////////////
        // Overridden functions

        public override int GetHashCode()
        {
            if (_hash != null && _hash != 0)
            {
                return(_hash.Value);
            }

            int h1 = HqlUniqueHash.CalculateHashCode(this);

            _hash = h1;

            return(_hash.Value);
        }
예제 #2
0
        static public HqlUniqueHash GetUniqueHash()
        {
            if (_hash == null)
            {
                lock (lockit)
                {
                    if (_hash == null)
                    {
                        _hash = new HqlUniqueHash();
                    }
                }
                return(GetUniqueHash());
            }

            return(_hash);
        }