|
switch 문의 관리 형식은 switch expression에 의해 결정된다. switch expression의 type이 **sbyte, byte, short, ushort, int, uint, long, ulong, char, string, an enum-type**일 경우 이 형식이 switch 문의 관리 형식이 된다. 이 형식에 해당하지 않는 경우 사용자 정의 implicit conversion을 한 번 수행해야한다. implicit conversion을 하지 않거나 두 번 이상 수행하면 컴파일 오류가 발생한다.
|
|
switch 문의 관리 형식은 switch expression에 의해 결정된다. switch expression의 type이 **sbyte, byte, short, ushort, int, uint, long, ulong, char, string, an enum-type**일 경우 이 형식이 switch 문의 관리 형식이 된다. 이 형식에 해당하지 않는 경우 사용자 정의 implicit conversion을 한 번 수행해야한다. implicit conversion을 하지 않거나 두 번 이상 수행하면 컴파일 오류가 발생한다.
|