示例#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
 }
示例#2
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
        }