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

DescriptorToInternalName() private static method

Convert a non-method type descriptor into an internal type.
Convert a non-method type descriptor into an internal type.
private static DescriptorToInternalName ( string descriptor ) : string
descriptor string the simple type descriptor to convert
return string
		private static string DescriptorToInternalName(string descriptor)
		{
			switch (descriptor[0])
			{
				case 'B':
				case 'C':
				case 'D':
				case 'F':
				case 'I':
				case 'J':
				case 'S':
				case 'Z':
				case 'V':
				case '[':
				{
					return descriptor;
				}

				case 'L':
				{
					return ClassDescriptorToInternalName(descriptor);
				}

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