def.ghi 这样的话其实是把def当作一个class, ghi是def的inner class;但namespace 不是class 所以不能用

解决方案 »

  1.   

    命名空间为abc.def所以using abc.def;啊
      

  2.   

    GXTCOA
    GXTCOA.HumanAccess
    这是两个命名空间Users是GXTCOA.HumanAccess里的一个类我在另外一个项目这样做:using GXTCOA;HumanAccess.Users user = new HumanAccess.Users();没有错,为什么?
      

  3.   

    命名空间是什么就是什么,你的命名空间为abc.def,怎么可以直接使用abc呢,
      

  4.   

    我觉得你的命名空间是不是像
    System;以及System.Text   一样的区别
    你的类属于abc.def这个空间,并不属于abc这个空间呀
      

  5.   

    问一下,你有没有引用那个assembly?
      

  6.   

    没有引用assembly,请问跟assembly有什么联系?
      

  7.   

    如果你的abc.efg这个namespace在另一个assembly里, 你得把它加到project的reference里之后才能用 using abc.efg
      

  8.   

    GXTCOA
    GXTCOA.HumanAccess
    这是两个命名空间Users是GXTCOA.HumanAccess里的一个类我在另外一个项目这样做:using GXTCOA;HumanAccess.Users user = new HumanAccess.Users();--------------------------------
    我试了试,不行......
      

  9.   

    ****************************************************************
    GXTCOA
    GXTCOA.HumanAccess
    这是两个命名空间Users是GXTCOA.HumanAccess里的一个类
    ***************************************************************这是我自定义的,不是类库里的
      

  10.   

    我试了试, 不能这样用就象如果你只using System; 不能用Text.StringBuider sb =new Text.StringBuilder();
    只能using System.Text 用StringBuilder sb=new StringBuilder();
    System.Text不是一个class.不知道楼主是怎么实现这个的
    using GXTCOA;HumanAccess.Users user = new HumanAccess.Users();???
      

  11.   

    GXTCOA是一个企业级项目,命名空间为GXTCOAHumanAccess是项目GXTCOA下的一个子项目,命名空间为GXTCOA.HumanAccess,相当命名空间HumanAccess包含于命名空间GXTCOA在这个项目里面实现了我所说的。不过你说的也是有道理的