MapView.CustomPropertyGrid.initTypes C# (CSharp) Method

initTypes() private method

Initialize a private hashtable with type-opCode pairs so i dont have to write a long if/else statement when outputting msil
private initTypes ( ) : void
return void
		private void initTypes()
		{
			typeHash=new Hashtable();
			typeHash[typeof(sbyte)]=OpCodes.Ldind_I1;
			typeHash[typeof(byte)]=OpCodes.Ldind_U1;
			typeHash[typeof(char)]=OpCodes.Ldind_U2;
			typeHash[typeof(short)]=OpCodes.Ldind_I2;
			typeHash[typeof(ushort)]=OpCodes.Ldind_U2;
			typeHash[typeof(int)]=OpCodes.Ldind_I4;
			typeHash[typeof(uint)]=OpCodes.Ldind_U4;
			typeHash[typeof(long)]=OpCodes.Ldind_I8;
			typeHash[typeof(ulong)]=OpCodes.Ldind_I8;
			typeHash[typeof(bool)]=OpCodes.Ldind_I1;
			typeHash[typeof(double)]=OpCodes.Ldind_R8;
			typeHash[typeof(float)]=OpCodes.Ldind_R4;
		}