C# Member XXX cannot be accessed with an instance with an instance reference;qualify it with a type

    xiaoxiao2022-07-13  155

    C#报错:

    Member XXX cannot be accessed with an instance with an instance reference;qualify it with a type name instead

    无法使用具有实例引用的实例访问成员xxx;请改用类型名对其进行限定

     

    解决:该方法是静态static的,所以要使用Class.Func的调用方式,而不是实例化后调用

     

    最新回复(0)