Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# Errors for declaring array
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
C# Errors for declaring array
Environment versions
Environment:
C# 3.0
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01433718
Message ID:
01433718
Views:
109
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];
Next
Reply
Map
View

Click here to load this message in the networking platform