I find myself doing the following often enough that I feel like there must be an automated solution:
I have a wrapper class, say ListWrapper, which wraps an IList:
public class ListWrapper : IList
{
private IList _list;
// ... Implement IList by redirecting every call to _list
}
Is there any tool out there that will automatically generate this implementation?
Using ReSharper, inside the class hit “alt-insert” and then select “delegating members”.