Doing a search around I've found this kind of question being asked in the past but not targeted at VS2010 or C# .Net 4. Has anyone come across a way to make interface comments inherit through to the implementation classes for intellisense to use?
A colleague suggested copy and paste into the implementation but there must be a better way. Looking at the previous question recommendations Sandcastle appears to be a documentation generator which isn't what I need.
Consider the following:
public interface IFoo
{
/// <summary>
/// Comment comment comment
/// </summary>
string Bar { get; set; }
}
public class Foo : IFoo
{
public string Bar { get; set; }
}
public class Test
{
public Test()
{
IFoo foo1 = new Foo();
foo1.Bar = "Intellisense comments work";
Foo foo2 = new Foo();
foo2.Bar = "Intellisense comments don't work";
}
}
Is there a way to make intellisense on foo2 work?