Details
Description
Compiler fails on compiling the class which implements System.Resources.IResourceReader (like this one)
class Demo2(IResourceReader):
def GetEnumerator():
return null ;
def Close() :
pass
def Dispose():
pass
with the message:
'classname.GetEnumerator' conflicts with inherited member System.Resources.IResourceReader.GetEnumerator
Look up explicit interface implementations, like here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkexplicitinterfaceimplementationtutorial.asp
See also how the ResourceReader class implements this interface: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemResourcesResourceReaderMethodsTopic.asp
import System.Resources
import System.Collections
class Demo2(IResourceReader):
def IResourceReader.GetEnumerator() as IDictionaryEnumerator:
pass
def Close() :
pass
def Dispose():
pass
def IEnumerable.GetEnumerator() as IEnumerator:
pass