Class is inaccessible due to its protection level

后端 未结 9 1864
孤街浪徒
孤街浪徒 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:34

    Hi You need to change the Button properties from private to public. You can change Under Button >> properties >> Design >> Modifiers >> "public" Once change the protection error will gone.

    Budi

提交回复
热议问题