// Token: 0x06000042 RID: 66 RVA: 0x0000347C File Offset: 0x0000247C
        internal static byte[] GetBytes(OriginOperatingSystems system)
        {
            switch (system)
            {
            case OriginOperatingSystems.Win16:
                return(new byte[2]);

            case OriginOperatingSystems.Macintosh:
            {
                byte[] array = new byte[2];
                array[0] = 1;
                return(array);
            }

            case OriginOperatingSystems.Win32:
            {
                byte[] array2 = new byte[2];
                array2[0] = 2;
                return(array2);
            }

            default:
                throw new ArgumentException(string.Format("unexpected value {0}", system.ToString()), "system");
            }
        }
예제 #2
0
 internal static byte[] GetBytes(OriginOperatingSystems system)
 {
     switch (system)
     {
         case OriginOperatingSystems.Win16:
             return new byte[] { 0x00, 0x00 };
         case OriginOperatingSystems.Macintosh:
             return new byte[] { 0x01, 0x00 };
         case OriginOperatingSystems.Win32:
             return new byte[] { 0x02, 0x00 };
         default:
             throw new ArgumentException(string.Format("unexpected value {0}", system.ToString()), "system");
     }
 }
        internal static byte[] GetBytes(OriginOperatingSystems system)
        {
            switch (system)
            {
            case OriginOperatingSystems.Win16:
                return(new byte[] { 0x00, 0x00 });

            case OriginOperatingSystems.Macintosh:
                return(new byte[] { 0x01, 0x00 });

            case OriginOperatingSystems.Win32:
                return(new byte[] { 0x02, 0x00 });

            default:
                throw new ArgumentException(string.Format("unexpected value {0}", system.ToString()), "system");
            }
        }