gpt4 book ai didi

c# - “Payment.GenLedDet”因其保护级别而无法访问

转载 作者:行者123 更新时间:2023-12-03 08:08:12 25 4
gpt4 key购买 nike

namespace DataAccessLayer
{
public class PaymentDAL
{

public void InsertInGenLedDet(GenLedDet genLedDet)
{
}

}

我的 GenLedDet 类存在于 Payment namespace

这是我在数据层中的代码片段,并且正在使用此代码。不知道为什么会出现此错误,因为我确实有另一个功能没有显示此类错误

最佳答案

正如错误试图告诉你的那样,你不能制作 public将非公共(public)类作为参数的函数。

关于c# - “Payment.GenLedDet”因其保护级别而无法访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12824797/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com