internal interface i_foo { void bar(); } public abstract class a_foo : i_foo { public a_foo() { } abstract void i_foo.bar(); } public class foo : a_foo { public foo() : base() { } internal override void bar() { } } hello! i'm trying have methods visible outside code, , other visible assembly. purpose, made internal interface i_foo serve contract other parts of assembly, public abstract a_foo serve abstraction external code, , centralize constructor functionality, , several different classes foo implement a_foo , i_foo explicitly retain internal modifier. however, in a_foo class, get 'a_foo.i_foo.bar()' must declare body because not marked abstract, extern, or partial even though method marked "abstract". if add body, "abstract not valid modifier". i need method explicitly declared, in order internal in public class, , need abstract can override in actual implementation foo. why doesn't compiler let m...
Comments
Post a Comment