what is the problem? by the way, you can remove 
using MyBean;from the second file, make sure you add the reference to the DLL compiled from the first cs file, or you can compile them together

解决方案 »

  1.   

    make sure you add the reference to the DLL compiled?what need i do?
      

  2.   

    tell us what the problem you have? compiling error or some other errors? show the error code
      

  3.   

    the error is :
       cartdb.cs(33,20): error CS0234:
            类型或命名空间名称“ProductDb”在类或命名空间“MyBean”中不存在(是否缺
            少程序集引用?)
    cartdb.cs(34,38): error CS0246: 找不到类型或命名空间名称“products”(是否缺少
            using 指令或程序集引用?)
    你最好将以上两个文件下到你的机器上编译一下,好吗?
      

  4.   

    did you compile them together? if not, say you compile ProductDb.cs into ProductDb.dll by using
    csc /t:library ProductDb.cs then do
    csc /t:library /r:ProductDb.dll CartDb.csif you are using VS.NET, try to add a reference to ProductDb.dll