Exemplo n.º 1
0
        public static void DNSServiceRefDeallocate(IntPtr sdRef)
        {
            switch (GetCurrentOperatingSystem())
            {
            case OperatingSystem.Windows:
                NativeWindows.DNSServiceRefDeallocate(sdRef);
                return;

            case OperatingSystem.OSX:
                NativeOSX.DNSServiceRefDeallocate(sdRef);
                return;

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