Org.Mozilla.Classfile.ClassFileWriter.ArrayTypeToName C# (CSharp) 메소드

ArrayTypeToName() 개인적인 정적인 메소드

Convert a newarray operand into an internal type.
Convert a newarray operand into an internal type.
private static ArrayTypeToName ( int type ) : char
type int
리턴 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");
				}
			}
		}