Hi,
I am having some problems with the partial types in C# 2.0. According to theory, we can have same class and both will compile as a single unit and execute as if they are a single file.
But when I executed a simple code it is not showing the desired result. The code is compiled
separately and only one file gets executed.
//Hello1.cs
using System;
public partial class Hello
{
public static void Main()
{
Console.WriteLine("Welcome to 1");
}
}
//Hello2.cs
using System;
public partial class Hello
{
public static void Main()
{
Console.WriteLine("Welcome to 2");
}
}
Can anybody help me with what is wrong with the above code?
Nandu