c# common classes

is it possible to reference shared classes in fm1.1,without we have to import them , like framework 2.0 do with app_code folder classes

Answer this question

c# common classes

  • Diane Landen

    i mean a web project not a windows project:
    in framework 2.0 there is a special folder for web project called app_code, all classess in app_cde can be referenced by each page in the project, but i don't know how i can do the same with fm1.1

  • TaiChiMaster

    OK, the answer to this is twofold.

    1 - If Microsoft released a new version of the framework and you could do everything it offered on the old framework, no-one would upgrade

    2 - ASP.NET questions are off topic on these forums, you need to ask this question at www.asp.net.



  • newtoc#484467

    Can you given an example of what you mean You want to do this in .NEt 1.1 Are you talking about partial classes



  • Zero_

    If a class is referenced or in a project you can always access it by its full name.

    If there is a class in MyProject.DataAccess called Reader you can reference it as

    MyProject.DataAccess.Reader reader = new MyProject.DataAccess.Reader();

    This approach does not require to state that you are using MyProject.DataAccess and write something like this

    Reader reader = new Reader();

    As long as your project knows classes in a namespace it can use it, you do not need to explicitly state that you want to use it.



  • c# common classes