Re: How to tell if an interface method has been implemented
- From: Oliver Sturm <oliver@xxxxxxxxxxxx>
- Date: Fri, 26 Aug 2005 10:09:18 +0100
Jon Skeet [C# MVP] wrote:
2. Should I just call MethodB as if it had been implemented? Is there any performance issues with calling an empty sub?
It's unlikely to be a bottleneck, certainly - I would only worry about it when you've definitely got a problem.
One thing you could do is add a custom attribute which you'd create (eg StubImplementationAttribute) to the stub implementation - then you could look for that.
.... but that would certainly take more time than just calling the empty method.
Oliver Sturm -- omnibus ex nihilo ducendis sufficit unum Spaces inserted to prevent google email destruction: MSN oliver @ sturmnet.org Jabber sturm @ amessage.de ICQ 27142619 http://www.sturmnet.org/blog .
- Follow-Ups:
- Re: How to tell if an interface method has been implemented
- From: Jon Skeet [C# MVP]
- Re: How to tell if an interface method has been implemented
- References:
- How to tell if an interface method has been implemented
- From: Chris Dunaway
- Re: How to tell if an interface method has been implemented
- From: Jon Skeet [C# MVP]
- How to tell if an interface method has been implemented
- Prev by Date: Send a null value to a datetime field in access though .net insert command
- Next by Date: Re: List SQL servers in a network
- Previous by thread: Re: How to tell if an interface method has been implemented
- Next by thread: Re: How to tell if an interface method has been implemented
- Index(es):
Relevant Pages
|