static FileSystemInfoWrapper() {
            switch (Environment.OSVersion.Platform)
            {
            case PlatformID.MacOSX:
                goto case PlatformID.Unix;
            case PlatformID.Unix:
                reader = new ExtendedAttributeReaderUnix();
                break;
            case PlatformID.Win32NT:
                reader = new ExtendedAttributeReaderDos();
#if !__MonoCS__
                actualUser = new NTAccount(Environment.UserName).Translate(typeof(SecurityIdentifier)) as SecurityIdentifier;
#endif
                break;
            }
        }
Beispiel #2
0
        static FileSystemInfoWrapper()
        {
            switch (Environment.OSVersion.Platform)
            {
            case PlatformID.MacOSX:
                goto case PlatformID.Unix;

            case PlatformID.Unix:
                reader = new ExtendedAttributeReaderUnix();
                break;

            case PlatformID.Win32NT:
                reader = new ExtendedAttributeReaderDos();
                break;
            }
        }
        static FileSystemInfoWrapper()
        {
            switch (Environment.OSVersion.Platform)
            {
            case PlatformID.MacOSX:
                goto case PlatformID.Unix;

            case PlatformID.Unix:
                reader = new ExtendedAttributeReaderUnix();
                break;

            case PlatformID.Win32NT:
                reader = new ExtendedAttributeReaderDos();
#if !__MonoCS__
                actualUser = new NTAccount(Environment.UserName).Translate(typeof(SecurityIdentifier)) as SecurityIdentifier;
#endif
                break;
            }
        }