none
Namespace RRS feed

  • Question

  • 1.Can we write method outside the namespace?

     

    2.How to call a method without refering its classname. (Eg:- i have a method in ab.abc.myMethod() and i want to get myMethod just my importing ab) ?

     

     

    Tuesday, January 29, 2008 10:18 AM

Answers

  • 1) In .NET, methods must be in a class and classes must be in a namespace

     

    2) by just importing ab, you can call myMethod() as abc.myMethod()

     

    Hope that Helps,

     

    Amol A. Vaidya

     

    Tuesday, January 29, 2008 10:33 AM

All replies

  • 1) In .NET, methods must be in a class and classes must be in a namespace

     

    2) by just importing ab, you can call myMethod() as abc.myMethod()

     

    Hope that Helps,

     

    Amol A. Vaidya

     

    Tuesday, January 29, 2008 10:33 AM
  • Thank you for the answers.

     

    Wednesday, January 30, 2008 5:13 AM