Ejemplo n.º 1
0
        private static Mode ConvertMode(GMode mode)
        {
            switch (mode)
            {
            case GMode.Numeric:
                return(Mode.NUMERIC);

            case GMode.Alphanumeric:
                return(Mode.ALPHANUMERIC);

            case GMode.EightBitByte:
                return(Mode.BYTE);

            case GMode.Kanji:
                return(Mode.KANJI);

            default:
                throw new ArgumentOutOfRangeException("mode", mode, string.Format("Gma mode doesn't contain {0}", mode));
            }
        }
Ejemplo n.º 2
0
 private static Mode ConvertMode(GMode mode)
 {
 	switch(mode)
 	{
 		case GMode.Numeric:
 			return Mode.NUMERIC;
 		case GMode.Alphanumeric:
 			return Mode.ALPHANUMERIC;
 		case GMode.EightBitByte:
 			return Mode.BYTE;
 		case GMode.Kanji:
 			return Mode.KANJI;
 		default:
 			throw new ArgumentOutOfRangeException("mode", mode, string.Format("Gma mode doesn't contain {0}", mode));
 	}
 }