Is there a tool that will implement an interface by wrapping a member field or property?

c#, resharper, visual-studio

Solution

Using ReSharper, inside the class hit "alt-insert" and then select "delegating members".

Problem

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?

Original source