示例#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);
        }