Ejemplo n.º 1
0
 static OpenSingleFileDialog()
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
     {
         dialogImpl = new Win32.SingleFileDialogImpl();
     }
     else
     {
         dialogImpl = new DefaultImpl();
     }
 }
        static OpenSingleFileDialog()
        {
#if NETFULL
            dialogImpl = new Win32.SingleFileDialogImpl();
#elif NETCORE
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                dialogImpl = new Win32.SingleFileDialogImpl();
            }
            else
            {
                dialogImpl = new DefaultImpl();
            }
#else
            throw new PlatformNotSupportedException();
#endif
        }