BUG: The Visual C# .NET Implement Interface command does not implement different declarations with the same signature (811601)
The information in this article applies to:
- Microsoft Visual C# .NET (2002)
SYMPTOMSThe Microsoft Visual C# .NET Implement Interface command does not implement functions that have the same
signature. However, the return types of the functions are different when you
implement more than one interface. You may receive the following compilation
error message when you try to build the project: NameSpace.Class Name does not implement interface member Member Name'. NameSpace.ClassName.Member Name is either static, not public, or has wrong return type.
Where Class Name is the name of the class and Member Name is the name of the method with the same signature. CAUSEIn Microsoft Visual Studio .NET 2002, the Implement
Interface command does not implement all the functions of an interface if
any other function with the same signature already exists (even if the
functions have different return types) in another interface that is implemented
by the class. As a result, some of the functions with the same signature are
not implemented when you use the Implement Interface command. Therefore, you may receive a compilation error when you
try to compile your project.WORKAROUNDTo work around this problem, manually add the implementation
of the function that was not implemented by the Implement
Interface command.STATUS Microsoft has confirmed that this is a bug in the
Microsoft products that are listed at the beginning of this article. This bug
had been fixed in Microsoft Visual Studio .NET 2003.
Modification Type: | Major | Last Reviewed: | 1/18/2006 |
---|
Keywords: | kberrmsg kbMsg kbCompiler kbInheritance kbbug KB811601 kbAudDeveloper |
---|
|