Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# Errors for declaring array
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01433718
Message ID:
01433748
Vues:
43
Cecil,

Just to help you're .NET learning curve a bit (and hopefully not confuse you)

The change was not made in VS2010, but rather in C# 4.0. The IDE is VS is actually a separate product from C#. In fact, you don't even need VS to develop in C# as the language and the compilers (VB also) ship with the .NET Framework that you can get for free. You can download the Framework and use any text editor to write C# code.

With VFP, every version of the language came with a new version of the IDE. They were tightly coupled. That's not the case with .NET. Versions of the Framework are not tied to specific version of the languages or the IDE and in fact, any of them can release a new version without a new version of the other.

So, with the current release you have:
C# 3.0
VB 9.0
.NET Framework 3.5
VS2008 (version 9.0)

With 2010 you get:
C# 4.0
VB 10.0
.NET Framework 4 (Note it isn't 4.0)
VS2010 (version 10)




>Okay, I did some digging in the MSDN help for Visual Studio 2010 Beta 2. It seems that Microsoft has changed the creation and initializing of arrays from a 2-step Texas jig to a 1-step Tennessee crawl, as follows:
>
>http://msdn.microsoft.com/en-us/library/0a7fscd0(VS.100).aspx
>
>Here's an example of how you'd set up an array of 10 integer array elements, and the same for a string array of 10 elements. It's a 1-step process in Visual Studio 2010 for C#. I tried it and there were no longer any errors.
>
>
>int[] numbers = new int[10];
>string[] strMyStringArray = new string[10];
>
>
>Cecil
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform