Is there an example of how to use SyntaxEditor with partial classes written in C#?
partial class Tubo
{
  public void One() {}
}partial class Tubo
{
  public void Two() 
  {
    this.One(); // intellisense doesn't see method One
  }
}Miha Markic Righthand .net consulting and software development
Miha Markic Righthand .net consulting and software development
partial class Tubo
{
    public void Meho(){
        Tubo t;
        t.One();   // t sees One() but not Meho()
        this.One();// this doesn't see One() but sees Meho()
    }
}const string text = @"partial class Tubo { public void One(){}}";
string s = resolver.SourceProjectContent.LoadForCode(language, "xxx", text);Miha Markic Righthand .net consulting and software development
const string text = @"partial class Tubo { public void One(){}}";
string s = dotNetProjectResolver.SourceProjectContent.LoadForCode(cSharpLanguage, "xxx", text);Miha Markic Righthand .net consulting and software development
partial class Tubo
{
  #if Net11
  public void One() 
  {
     return;    
  }
  #else
  public void OneEx() 
  {
     return;    
  }
  #endif
}
partial class Tubo
{
    public void Meho(){
        Tubo t;
        t.One();   // IntelliPrompt contains two methods - One() and OneEx().
    }
}
Please log in to a validated account to post comments.