TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
i-nfo
NA
5
0
Reagrding Partial Types
Dec 3 2003 12:47 AM
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
Reply
Answers (
0
)
Getting Depending Classes (URGENT)
One Method, Two Forms.. Please Help!