Exemplo n.º 1
0
        /// <summary>
        /// Initializes static members of the FileInfoHelper class.
        /// </summary>
        static FileInfoHelper()
        {
#if NET_CF || SILVERLIGHT
            Helper = new PortableFileInfoHelper();
#else
            if (PlatformDetector.IsDesktopWin32)
            {
                Helper = new Win32FileInfoHelper();
            }
            else
            {
                Helper = new PortableFileInfoHelper();
            }
#endif
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes static members of the FileInfoHelper class.
        /// </summary>
        static FileInfoHelper()
        {
#if SILVERLIGHT
            Helper = new PortableFileInfoHelper();
#else
            if (PlatformDetector.IsDesktopWin32)
            {
                Helper = new Win32FileInfoHelper();
            }
            else
            {
                Helper = new PortableFileInfoHelper();
            }
#endif
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes static members of the FileInfoHelper class.
        /// </summary>
        static FileInfoHelper()
        {
#if NET_CF || SILVERLIGHT
            Helper = new PortableFileInfoHelper();
#else
            if (PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.Windows) ||
                PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsNT))
            {
                Helper = new Win32FileInfoHelper();
            }
            else
            {
                Helper = new PortableFileInfoHelper();
            }
#endif
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes static members of the FileInfoHelper class.
        /// </summary>
        static FileInfoHelper()
        {
#if NET_CF || SILVERLIGHT
            Helper = new PortableFileInfoHelper();
#else
            if (PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.Windows) ||
                PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsNT))
            {
                Helper = new Win32FileInfoHelper();
            }
            else
            {
                Helper = new PortableFileInfoHelper();
            }
#endif
        }