Posted 15 years ago
by Gareth Hayter
If you type 'pro' then invoke auto-complete, it will always complete to 'protected', a keyword, even when you have classes names 'Project' in-scope. An example from your '.Net Language Reflection with External References' demo:
using System;
using System.Drawing;
using System.Windows.Forms;
namespace TestApplication.SyntaxEditorIntelliPrompt {
public class Project
{
public string Name {get;set;}
}
/// <summary>
/// Provides the base class for the <see cref="InheritedControl"/> class.
/// </summary>
public class BaseControl : Control {
private Color boxColor = Color.Red;
private Size boxSize = new Size(100, 100);
private ColorButton button;
public BaseControl() {
pro <- Type CTRL-Space to invoke auto-complete. It completes to 'protected' even though a class called 'Project' is defined above
button = new ColorButton();
button.Parent = this;
button.Location = new Point(20, 20);
button.Color = boxColor;
}
using System;
using System.Drawing;
using System.Windows.Forms;
namespace TestApplication.SyntaxEditorIntelliPrompt {
public class Project
{
public string Name {get;set;}
}
/// <summary>
/// Provides the base class for the <see cref="InheritedControl"/> class.
/// </summary>
public class BaseControl : Control {
private Color boxColor = Color.Red;
private Size boxSize = new Size(100, 100);
private ColorButton button;
public BaseControl() {
pro <- Type CTRL-Space to invoke auto-complete. It completes to 'protected' even though a class called 'Project' is defined above
button = new ColorButton();
button.Parent = this;
button.Location = new Point(20, 20);
button.Color = boxColor;
}