Пример #1
0
		public int make(object o)
		{
			WeakHashableObject key = new WeakHashableObject(o);
			if (this.objectIDDict.ContainsKey(key))
			{
				return this.objectIDDict[key];
			}
			int num = this.nextID;
			this.nextID++;
			this.objectIDDict[key] = num;
			return num;
		}
Пример #2
0
        public int make(object o)
        {
            WeakHashableObject key = new WeakHashableObject(o);

            if (this.objectIDDict.ContainsKey(key))
            {
                return(this.objectIDDict[key]);
            }
            int num = this.nextID;

            this.nextID++;
            this.objectIDDict[key] = num;
            return(num);
        }