Org.Mozilla.Classfile.ClassFileWriter.ArrayTypeToName C# (CSharp) Method

ArrayTypeToName() private static method

Convert a newarray operand into an internal type.
Convert a newarray operand into an internal type.
private static ArrayTypeToName ( int type ) : char
type int
return char
		private static char ArrayTypeToName(int type)
		{
			switch (type)
			{
				case ByteCode.T_BOOLEAN:
				{
					return 'Z';
				}

				case ByteCode.T_CHAR:
				{
					return 'C';
				}

				case ByteCode.T_FLOAT:
				{
					return 'F';
				}

				case ByteCode.T_DOUBLE:
				{
					return 'D';
				}

				case ByteCode.T_BYTE:
				{
					return 'B';
				}

				case ByteCode.T_SHORT:
				{
					return 'S';
				}

				case ByteCode.T_INT:
				{
					return 'I';
				}

				case ByteCode.T_LONG:
				{
					return 'J';
				}

				default:
				{
					throw new ArgumentException("bad operand");
				}
			}
		}