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
Titre:
C# Errors for declaring array
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01433718
Message ID:
01433718
Vues:
110
Why would the below simple declaration/initialization give me three errors in VS 2010 (C#)? I tried this in Visual Studio 2008 and it worked perfectly? Could this be a bug in Visual Studio 2010 Beta 2?

string[] strMyArray;
strMyArray = new string[10];
namespace Hour1
{
    public partial class viewerForm : Form
    {
        const bool c_defPromptOnExit = false;
        string[] strMyArray;
            strMyArray = new string[10];
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform