Hi,
Environment is a class that has a read-only property, OSVersion, of the
type, OperatingSystem.
IntelliSense will show you the type of the property in a tooltip when it's
selected in the list.
If you place your mouse over the property in code you'll see the type in a
tooltip.
In Visual Studio try using the Object Browser. You can search for the
property by entering, "OSVersion". Select System.Environment.OSVersion from
the search results and look at the definition in the right-hand, bottom
window. Since it's a property you'll see that the definition is in the form
of a property. You can click the type and it will show you more information
(the empty window above it will show all of the members of the
OperatingSystem type).
If you're not using Visual Studio you can use Reflector:
"Lutz Roeder's Progamming .NET"
http://www.aisto.com/roeder/dotnet/
You can also search MSDN:
"Results 1 - 25 of about 250 for osversion"
http://search.msdn.microsoft.com/sea...uery=osversion
Choose the first result.
--
Dave Sexton
<ga********@myway.comwrote in message
news:11**********************@n67g2000cwd.googlegr oups.com...
Console.WriteLine("Current OS: {0} ", Environment.OSVersion)
I'm trying to find out what .OSVersion is.
It returns an object which details the OS.
I know it's not a method, because it doesnt have any empty brackets ()
after it.
Is it a property?
How do i find out for future reference what 'type' of member a given
entity is after the period of a namespace? I tried using 'go to
defintion' and found this: -
public static OperatingSystem OSVersion { get; }
But this didn't really help me.
Could someone assist please.
Thanks,
Gary-