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

Popular posts from this blog

ruby - re-try logic in a simple loop -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

Laravel Bind Multiple Class to One Contract in The Service Provider -