how partial classes are integratated? [Resolved]

Posted by Rajeshk under C# on 12/24/2012 | Points: 10 | Views : 807 | Status : [Member] | Replies : 2
hi all,
The main feature in .net that is partial classes they are going to split the classes and integrate them once i dont know how it is achieving can anybody tell me plz? thank you

Thanks&Regards
rajeshkommireddy@gmail.com



Responses

Posted by: Pavanandey on: 12/24/2012 [Member] Bronze | Points: 50

Up
0
Down

Resolved
public partial class Math : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
}


public partial class Math : System.Web.UI.Page
{
protected int add(int i, int j)
{
return i + j;
}
}


public partial class Math : System.Web.UI.Page
{
protected int Divide(int i, int j)
{
return i / j;
}
}

you can have as many as class with the same name.

Thanks
Pavan Kumar
Mark Answer if this fits the need

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rabbil on: 12/24/2012 [Member] Starter | Points: 25

Up
0
Down
Follow this http://msdn.microsoft.com/en-us/library/wa80x488%28v=vs.80%29.aspx
Hope this would help you with a proper understanding.

Thanks & Regards,
Rabbil Ahmad

"I cannot teach anybody anything. I can only make them think"~ Socrates
Thanks And Regards

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response