コード例 #1
0
        public List <string[]> ToArrayList()
        {
            var result = new List <string[]>
            {
                new[] { "Server version:", ServerVersion },
                new[] { "Start time:", StartTime.ToString(CultureInfo.CurrentCulture) },
                new[] { "CPU count:", CPUCount.ToString(CultureInfo.InvariantCulture) },
                new[] { "Physical memory:", PhysicalMemory.ToString(CultureInfo.InvariantCulture) + " Kb" },
                new[] { "Available memory:", AvailablePhysicalMemory.ToString(CultureInfo.InvariantCulture) + " Kb" },
            };

            return(result);
        }