Skip to main content

Creating your own namespace in c sharp # using Microsoft visual studio 2010

// In this program we have created our own namespace in c#
using System;
using anuj;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            a ob = new a();

            ob.display();
            Console.Read();

           
        }
    }
}

namespace anuj
{
    public class a
    {
        public void display()
        {
            Console.WriteLine("this is a function call");
        }
    }
}

Comments

Popular posts from this blog

unix commands