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

            case OperatingSystem.OSX:
                return(NativeOSX.TXTRecordGetLength(txtRecord));

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