All pastes #1256358 Raw Edit

Miscellany

public text v1 · immutable
#1256358 ·published 2008-11-14 19:11 UTC
rendered paste body
dis b pr0 programs in C#, the code would pretty much be the same in java except for a few differences like impor instead of using and systemoutprintln instead of consolewriteline. anyways dis b pr0 code k?

Program.cs

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

namespace ConsoleApplication1
{
    class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("hi");
            Program p = new Program();
            Class1 c1 = new Class1();
            p.Hi();
            hi2();
            c1.hello2();
            Class1.hello();
        }
        public void Hi()
        {
            Console.WriteLine("hi2u");
        }
        public void hi1()
        {
            hi2();
        }
        public static void hi2()
        {
            Console.WriteLine("hi");
        }
    }
}

Class1.cs

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

namespace ConsoleApplication1
{
    class Class1
    {
        public static void hello()
        {
            Console.WriteLine("hello");
        }
        public void hello2()
        {
            Console.WriteLine("hello2");
        }
    }
}