예제 #1
0
        public override bool Equals(object obj)
        {
            KeyStruct other = (KeyStruct)obj;

            for (int i = 0; i < this.keys.Length; i++)
            {
                if (this.keys[i] != other.keys[i])
                {
                    return(false);
                }
            }

            return(true);
        }
예제 #2
0
		private object GetValue(object[] keys)
		{
			KeyStruct key = new KeyStruct(keys);
			return baseLookup[key];
		}
예제 #3
0
		public void Add(object value, object[] keys)
		{
			KeyStruct key = new KeyStruct(keys);
			baseLookup[key] = value;
		}
예제 #4
0
        private object GetValue(object[] keys)
        {
            KeyStruct key = new KeyStruct(keys);

            return(baseLookup[key]);
        }
예제 #5
0
        public void Add(object value, object[] keys)
        {
            KeyStruct key = new KeyStruct(keys);

            baseLookup[key] = value;
        }