[Mono-list] NET_1_1 & Co.
Sat, 24 Jul 2004 13:21:47 +0100
On Fri, Jul 23, 2004 at 03:40:12PM +0200, Jochen Wezel wrote:
> While reviewing code, I've seen in System.Environment:
> #if NET_1_1
> I would write
> #if not NET_1_0
> since I expect that in 2.x this "static" won't change. But if I reason correctly, this "static" item would get "unstatic" with this current grammar in DotNet 2.x.
In mcs/class/README it says:
* Supporting .NET 1.2, .NET 1.1 and .NET 1.0 builds
The defines NET_1_1 and NET_2_0 are used to include
features. When NET_2_0 is defined, it also implies that the
NET_1_1 is defined.
To have code which is only available in an old version, use ONLY_1_0,
The code you quoted is therefore correct.