Skip to main content

Partial class in c sharp #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication12
{
    partial class x
    {

        public void display()
        {
            Console.WriteLine("Display 1");
        }
        public void print()
        { Console.WriteLine("Print 1"); }


    }
    partial class x
    {
        public void display2()
        { Console.WriteLine("Display 2"); }
        public void print2()
        { Console.WriteLine("Print 2"); }
    }


    class Program
    {
        static void Main(string[] args)
        {
            x ob = new x();
            ob.display();
            ob.display2();
            ob.print();
            ob.print2();

            Console.Read();

        }
    }
}

Comments

Popular posts from this blog

unix commands