c# - Protected Internal method not allowing Internal Class as parameter -
this code not compile:
internal class foo {}  public abstract class somebaseclass {     protected internal void processfoo(foo value)     {         // doing something...     } }   the compile fails stating:
inconsistent accessibility: parameter type foo less accessible method somebaseclass.processfoo
apparently, protected internal means protected or internal , not protected , internal had believed.
credit michael liu
Comments
Post a Comment