我多年来一直是 vb 开发人员,但刚开始使用 c#。
我不确定这个错误是什么意思或如何解决它。我以前的所有搜索都没有返回任何对我有帮助的东西。你们能帮忙吗?
这是错误:
可访问性不一致:参数类型“ServeArticle.ReturnStyle”的可访问性低于方法“ServeArticle.DisplayArticle(int, string, ServeArticle.ReturnStyle)”
这是我的代码:
public partial class ServeArticle : BaseWebPage
{
protected mArticle objArticle;
protected string strHTML;
enum ReturnStyle:int
{
XML_SingleArticle = 4,
XML_MultiArticle = 5
};
protected void Page_Load(object sender, EventArgs e)
{
DisplayArticle(123, 'p123', (ReturnStyle)intReturnStyle);
}
}
protected void DisplayArticle(int intPublisherID, string strPublisherKey, ReturnStyle intReturnStyle)
{
try
{.....
任何帮助深表感谢 !
谢谢。