Class is inaccessible due to its protection level

后端 未结 9 1815
孤街浪徒
孤街浪徒 2020-12-07 01:00

I have three classes. all are part of the same namespace. here are the basics of the three classes.

//FBlock.cs
namespace StubGenerator.PropGenerator
{
    c         


        
9条回答
  •  有刺的猬
    2020-12-07 01:15

    I'm guessing public Method AddMethod(string aName) is defined on a public interface that FBlock implements. Consumers of that interface are not guaranteed to have access to Method.

提交回复
热议问题