任何有帮助的人我都无法理解此错误,请 [英] anyone with help i can't understand this error please please please

查看:42
本文介绍了任何有帮助的人我都无法理解此错误,请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Business_Logic.class name()由于其保护级别而无法访问.

Business_Logic.class name() is inaccessible due to its protection level

推荐答案

检查修饰符,如果它是internal,则将其设置为public. .


Check the modifer and set is it to public if it is internal.

i.e.
internal class someclass // -> set to public class someclass
{
    internal void name() // -> set to public void name() 
    {
    }
}


您尝试调用的方法和类是私有的.只需将其更改为public
The method and the class which you are trying to call is private. Just Change it to public



您的业​​务逻辑类不是公共的,您正在尝试从表示层访问它.仅当您的课程是公开的时,您才可以访问BL的课程.样本:
Hi,
Your business logic class is not public and you are trying to access it form presentation layer. You can access you classes of BL only when your class is public. Sample:
public class TestClass
{
   // My class description
}




祝一切顺利
--Amit




All the best
--Amit


这篇关于任何有帮助的人我都无法理解此错误,请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆