错误:'NBFC_App.AppCode.Utility'是'命名空间',但用作'类型' [英] Error : 'NBFC_App.AppCode.Utility' is a 'namespace' but is used like a 'type'

查看:102
本文介绍了错误:'NBFC_App.AppCode.Utility'是'命名空间',但用作'类型'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

using NBFC_App.AppCode.Queries;
using NBFC_App.AppCode.Utility;
using NBFC_App.AppCode.Sessions;
using System.Data;
using NBFC_App.AppCode.DbSubsystem;
using System.Text;

namespace NBFC_App.AppCode.Queries
{
    public class Usergroup_Qry
    {
        string gen_sql, MySql = "";
        int returnCount = 0;
        string where_clouse;
        string retunstring = "";
        StringBuilder sb;

        Utility o_Cls_Utility = new Utility();
        string t_sql, s_dsnstr;
        DataSet ds;







可以any1告诉解决方案上面的错误吗?




Can any1 tell the solution for above error?

推荐答案

Utility o_Cls_Utility = new Utility();



这行代码是问题,因为Utility是命名空间(


This line of code is the problem because Utility is the namespace (

using NBFC_App.AppCode.Utility;

)你已经将它用作类型并初始化它,这是不允许的。



必须有一个来自Utility命名空间的特定类型,您应该使用它。

) and you have used it as a type and initializing it, which is not allowed.

There must be a particular type from Utility namespace, which you should have used instead.


这篇关于错误:'NBFC_App.AppCode.Utility'是'命名空间',但用作'类型'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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