Consider this scenario, 2 interfaces, 1 generic:
public IGenericAdder<T>
{
T Add(T, T);
}
public IIntAdder : IGenericAdder<Int32>
{
}
Is there someway that I can do XML comments on the generic add method, so that intellisense will show “Adds the Int32” if I do a:
IIntAdder foo;
foo.Add( //Show intellisense here
I don’t think there is a way. You could:
T Add(T, T)method ofIGenericAdderwithnew int Add(int, int)inIIntAdderand put specific XML docs on it that refer to the correct types (ie. “Adds two ints together”).T.None of these really do what you originally asked though.