getting system information through C#
C#
3
Posts
3
Posters
0
Views
1
Watching
-
You didn't say exactly what information you want to get. So this will give you just about everything. :)
using System.Reflection; // for PropertyInfo
. . .
Type t = typeof(System.Windows.Forms.SystemInformation);
PropertyInfo[] pi = t.GetProperties();
for (int i = 0; i < pi.Length; i++)
Console.WriteLine(pi[i].Name + " = " + pi[i].GetValue(null, null));Cheers! Marshall
_If you continue to do the same things you always did,
don't be surprised if you get the same results you always got.
_