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

scala - 'wrong top statement declaration' when using slick in IntelliJ -

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

PySide and Qt Properties: Connecting signals from Python to QML -