Details
Description
interface InterfaceA:
def SomeMethod()
interface InterfaceB:
def SomeMethod()
class SomeClass(InterfaceA, InterfaceB):
def InterfaceA.SomeMethod():
print "In InterfaceA.SomeMethod"
def InterfaceB.SomeMethod():
print "In InterfaceB.SomeMethod"
c = SomeClass()
c.SomeMethod() // Error
c.InterfaceA.SomeMethod() // Error
ia = c as InterfaceA
ia.SomeMethod() // "In InterfaceA.SomeMethod"
ib = c as InterfaceB
ib.SomeMethod() // "In InterfaceB.SomeMethod"
From the c# language specification:
"It is a compile-time error for an explicit interface member implementation
to include access modifiers, and it is a compile-time error to include the
modifiers abstract, virtual, override, or static."
Issue Links
- duplicates
-
BOO-7
c# style private interface implementations
-
this issue can be closed