What is namespace? Explain it with its advantages. Create VB.Net console application to implement user defined namespace. Also give code to import it in another application.

' User Defined NameSpace

Namespace namespaceExample 
 public class classExample 
  public sub printMessage() 
   Console.WriteLine("This is the TestExample namespace!")
  End sub
 End class
End Namespace

' Importing NameSpace into Application
Imports namespaceAlias = dotNetTechnology.namespaceExample.classExample
Module Module1
 Sub Main()
  namespaceAlias.printMessage()
 End Sub
End Module

Related Posts Plugin for WordPress, Blogger...

Engineering material

GTU IDP/ UDP PROJECT

GTU IDP/ UDP PROJECT

Patel free software download

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP