C# Inconsistant accessibility:property type "XXX" is less accessible than property "XXX"
来源:互联网 发布:淘宝店铺运营基础知识 编辑:程序博客网 时间:2024/06/05 03:36
在练习一个配置文件的创建的时候,碰到这样一个问题:
Inconsistent accessibility: property type 'SDTMigration.ConfigFile.SectionItems.UserSectionItems' is less accessible than property 'SDTMigration.ConfigFile.CombinerConfig._SectionItems' C:/HESHAN_CODE/ConfigFile/CombinerConfig.cs
大致是属性类型访问权限不够.
这是我根据我的代码写的一个例子,说明问题就可以.按照上面的代码编译,通不过,报上面的错误.
刚开始A类的访问权限没有加public ,默认的是internal.跟B类的一样.没问题编译通过.难道是A类跟B类的访问权限不一样.
把B类的权限更改为public .通过.
原来是访问权限不是一个等级造成的.
- C# Inconsistant accessibility:property type "XXX" is less accessible than property "XXX"
- Inconsistent accessibility: field type '...' is less accessible than field '...'
- C#函数编译出错:Inconsistent accessibility: parameter type ‘aaa.bbb.ccc’ is less accessible than method ‘aa
- javax.el.PropertyNotFoundException: Property 'XXX' not found on type XXX
- No property sql found for type xxx.xxx.entity.UserdefinedGroup
- Access restriction: The method XXX from the type XXX is not accessible due to restriction XXX
- 【JAVA001】No enclosing instance of type XXX is accessible.
- No enclosing instance of type xxx is accessible
- No enclosing instance of type XXX is accessible
- javax.el.PropertyNotFoundException: Property 'xxx' not found on type com.xxx.xxx
- javax.el.PropertyNotFoundException: Property 'xxx' not found on type
- Property 'aaa' not readable on type com.XXX
- Property 'XXX' not found on type java.lang.String解决方案
- Property 'XXX' not found on type java.lang.String解决方案
- Property 'xxx' not found on type java.lang.String
- Property 'XXX' not found on type java.lang.String解决方案
- Access restriction: The type XXX is not accessible due to restriction on required library XXX
- Access restriction: The type XXX is not accessible due to restriction on required library XXX
- 几行代码搞定二级域名!!!!!!
- Oracle索引分析与比较(三)—— 索引的两个知识点
- 架设移动开发环境一:Qt-wince 平台
- 强大的Unix流编辑器sed在线极速入门 (全三部分)
- 管理心得
- C# Inconsistant accessibility:property type "XXX" is less accessible than property "XXX"
- NOTE:CSS
- b/s工作流设计器
- 建模
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- 如果
- 最近遇到的需求实现资料。转
- OpenSessionInViewFilter 的配置及作用
- Cross Compile zlib as static and dynamic library