|
|
|
date: Thu, 31 Jul 2008 06:38:39 -0700 (PDT),
group: microsoft.public.dotnet.framework
back
Re: VS 2005 and .NET 3.0
First 3.0 and 3.5 is basically 2.0 with new capabilities brought into new
assemblies. In particular a 3.0 or 3.5 application stills runs with a 2.0
Common Language Runtime... So there is no 3.0 or 3.5 System.dll.
Then most of the new language features are compiler enhancements so :
- you need to use VS 2008 to use the new compiler
- even if you target 2.0 alone, you can still use most of those new language
features as they are just compiler tricks i.e. the generated code is the
same than previously, it's just the compiler that does a bit more work for
you with those new syntactic additions...
--
Patrice
"G.S." a écrit dans le message de groupe de discussion
: 2e3e25bd-f416-44d1-9d85-09cbcc980cc9@e53g2000hsa.googlegroups.com...
> On Jul 31, 11:27 am, "G.S." wrote:
>> On Jul 31, 11:01 am, Marc Gravell wrote:
>>
>> > > in 3.0
>> > I meant in VS2005
>>
>> Thank you!
>>
>> Sory if that's not an accurate question, but what about C# laguagge
>> features that were introduced in 3.0?
>>
>> I guess this all started when I tried to follow some code samples that
>> were not compiling... I thought they included 3.0 features, so I
>> wanted to crteated 3.0 Console App to run them...
>> Example:
>> struct MutableStruct
>> {
>> public int Value { get; set; }
>>
>> public void SetValue(int newValue)
>> {
>> Value = newValue;
>> }
>>
>> }
>>
>> (this is from Jon
>> Skeet'shttp://csharpindepth.com/Articles/Chapter8/PropertiesMatter.aspx)
>>
>> Would a reference to 3.0's System namespace do it? I guess I'll try
>> Thanks!
>
> Well, 2.0 is the only "System" dll that I can find...
> I'd appreciate any light on the above "mistery" :)
date: Thu, 31 Jul 2008 19:05:12 +0200
author: Patrice http://www.chez.com/scribe/
|
|