Exemplo n.º 1
0
        public static ushort TXTRecordGetCount(ushort txtLen, IntPtr txtRecord)
        {
            switch (Native.GetCurrentOperatingSystem())
            {
            case OperatingSystem.Windows:
                return(NativeWindows.TXTRecordGetCount(txtLen, txtRecord));

            case OperatingSystem.OSX:
                return(NativeOSX.TXTRecordGetCount(txtLen, txtRecord));

            default:
                throw new InvalidOperationException("The current OS is unsupported");
            }
        }