Attribute & Method Override Bug in VisualStudio 2003 Version (build 216)

Hallo,
I think there's a bug when checking the syntax for attributes, e.g.:

void UnmarshalRootNode(XmlNode objXmlRoot)
{
string test = objXmlRoot.Attributes["Type"].InnerText;
}

In this example ["Type"] is marked with an error ( Cannot apply indexing to
an expression of type 'XmlAttributeCollection').



Another syntax checking bug marks method-overrides as error:

public class Test : Page
{
private void Page_Load(object sender, EventArgs e)
{}

override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
this.Load += new EventHandler(this.Page_Load);
}
}

The override is marked with an error "There is no suitable method for
override".


1 comment
Comment actions Permalink

Could you please post the bugs into the tracker? Thanks.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hallo,
I think there's a bug when checking the syntax for attributes, e.g.:
void UnmarshalRootNode(XmlNode objXmlRoot)
{
string test = objXmlRoot.Attributes["Type"].InnerText;
}
In this example ["Type"] is marked with an error ( Cannot apply
indexing to an expression of type 'XmlAttributeCollection').

Another syntax checking bug marks method-overrides as error:

public class Test : Page
{
private void Page_Load(object sender, EventArgs e)
{}
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
this.Load += new EventHandler(this.Page_Load);
}
}
The override is marked with an error "There is no suitable method for
override".



0

Please sign in to leave a comment.