Re: C# 2.0 vs. .NET Compact Framework 2.0



I *think* he's trying to ask if he can use the new language features of C#
(generics and the like) in a CF 1.0 project. I would suspect that if you
build with Studio 05 that you can, but I've not tested that. Of course
testing it would be really simple, so I'll leave it to the OP.

-Chris




"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:%23KD6NVTmGHA.4816@xxxxxxxxxxxxxxxxxxxxxxx
I don't know what a C# 2.0 is, but I think that you're confusing two
concepts. The tools themselves can generate code in certain patterns, some
of which might be supported by a given version of the run-time framework
and some which might not.

However, if you're talking about C# as provided in Visual Studio 2005, it
can generate suitable code for either .NET Compact Framework 1.0 or 2.0
and, in fact, the project templates that you get for Smart Device
applications in VS2005 allow you to choose which target will be used. If
your project targets .NET CF 1.0, then it should run on devices that have
either .NET CF 1.0 or 2.0 on them. If you target .NET CF 2.0, no, that
code won't run on a device without .NET CF 2.0.

Paul T.

"Ivan" <Ivan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:64CE0F2D-DE47-4F4A-9DF9-BEDF99DE0ED1@xxxxxxxxxxxxxxxx
C# 2.0 is obviously a programning language, and the .NET Compact
Framework
2.0 (CF 2.0) only defines high level classes/data
types/components/controls/etc to be used with that programming language,
correct?

If so, are there only certain versions of C# that can be uses with CF 2.0
,
or can all versions of C# be used to access CF 2.0?

Furthermore, are there OS version restrictions when work with new
versions
of C#? For example... Can one compile and run C# 2.0 code on older OS
versions such as Pocket PC 2002, as long as they don't use an unsupported
CF
version (i.e. CF 2.0)?

thanks




.



Relevant Pages

  • Re: C# 2.0 vs. .NET Compact Framework 2.0
    ... My understanding is that generics is built into the framework, ... However, if you're talking about C# as provided in Visual Studio 2005, it ... your project targets .NET CF 1.0, then it should run on devices that have ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Wishlist for Delphi 10 / 2006
    ... Been there....Same goes with Interfaces. ... Now wait a minute, I've never stated that I dislike generics, operator overloading ... language features of delphi, if the existing features were properly understood by ...
    (borland.public.delphi.non-technical)
  • Re: Targeting builds for .NET FW 1.1 using VS 2005
    ... I remember reading somewhere about a VS2005 setting ... >that would disallow .NET 2.0 language features, like generics. ...
    (microsoft.public.dotnet.framework)
  • Why Generics?
    ... the powers that be added generics. ... Can someone please explain to me what value they add to Java? ... Java didn't need any language features to implement container classes ...
    (comp.lang.java.programmer)
  • Re: Your 2 cents: Java Generics, love it, hate it, or waiting?
    ... > What is your vote on generics? ... I am a big fan. ... language features over having to cast everything from Object. ...
    (comp.lang.java.programmer)

Quantcast