Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnviromentInfo"/> class.
 /// </summary>
 internal EnviromentInfo()
 {
     FrameworksVersions = new FrameworksVersionCollection();
     OSVersion          = new OperatingSystemInfo(Environment.OSVersion);
     CurrentCulture     = Thread.CurrentThread.CurrentCulture.Name;
     CurrentUICulture   = Thread.CurrentThread.CurrentUICulture.Name;
     DomainInfo         = new DomainInfo();
     Date   = DateTime.Now;
     Pathes = new NameValuePair[]
     {
         new NameValuePair("CommandLine", Environment.CommandLine),
         new NameValuePair("CurrentDirectory", Environment.CurrentDirectory),
     };
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EnvironmentInfo"/> class.
        /// </summary>
        internal EnvironmentInfo()
        {
            FrameworksVersions = new FrameworksVersionCollection();
            OSVersion          = new OperatingSystemInfo(Environment.OSVersion);
            CurrentCulture     = Thread.CurrentThread.CurrentCulture.Name;
            CurrentUICulture   = Thread.CurrentThread.CurrentUICulture.Name;
            DomainInfo         = new DomainInfo();
            Date     = DateTime.Now;
            UtcNow   = DateTime.UtcNow;
            TimeZone = TimeZoneInfo.Local;

            Paths = new List <NameValuePair>
            {
                new NameValuePair("CommandLine", Environment.CommandLine),
                new NameValuePair("CurrentDirectory", Environment.CurrentDirectory)
            };
        }