I’m having a problem with internal access modifier. I also looked at this URL and yet facing this question why following code is NOT recognizing members of BaseClass?
namespace Project1
{
internal class BaseClass
{
public static int intM = 0;
}
}
namespace Project1
{
class TestAccess
{
static void Main()
{
BaseClass myBase = new BaseClass();
Console.WriteLine(myBase.intM);
}
}
}
It is not a problem with internal but apparently with static. Your class member is static and you are trying to access it through an instance.