I'm creating an interface on a 3rd party DLL so that I can use it over WCF. The implementation looks like this:
public class MyImplementation : IMyInterfaceFor3rdPartyClass
{
public ThirdPartyClass TPC = new ThirdPartyClass();
int MethodA()
{
return TPC.MethodA();
}
int MethodB(int someParameter)
{
return TPC.MethodB(someParameter);
}
}
However, there are about 50 methods and I really don't feel like implementing every one. Is there an easier way than hand typing the entire thing? Am I going about this the wrong way? I've already had VS "auto implement" all the method names which generates the method names and throw new NotImplementedException();
.
Edit Just had a thought: can the 3rd party class somehow implement the interface?