Answer Posted / alb.shah
This is a feature of 2005,when we have large and unwildly
classes instead of writing all the methods in same program
we will divide the class into number of programs with the
same class name,these classes are preceeded with partial
keyword,when we compile all this partial classes only one
dll with the same class name will be created.
class with some 20 methods:
Example.cs
class classA{
m1( );
m2( );
.
.
.
m20( );
}
Apply partial concept:
Example1.cs
partial class classA
{
m1( );
m2( );
.
.
m8( );
}
example2.cs
partial class classA
{
m9( );
m10( );
.
.
m15( );
}
Example3.cs
partial class classA
{
m16( );
.
.
m20( );
}
if we compile Examle1.cs,Example2.cs,Example3.cs it will
create only one dll
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is session state server?
Diff between web user control and web custom control?
Explain what is event bubbling?
How can we identify that the Page is Post Back?
Hi this is the coding for adding data in to an xml table
i want the coding for update and delete
Try
Dim emp_xml_doc As New XmlDocument
If
System.IO.File.Exists(Server.MapPath("emp.xml")) Then
emp_xml_doc.Load(Server.MapPath("emp.xml"))
Dim myrow_element As XmlElement
myrow_element =
emp_xml_doc.CreateElement("EmpDetails")
Dim str As String
str = "
What is latest version of asp.net mvc? : Asp.Net MVC
How do we sort the data from a dataset?
How many web config files can be created for an application?
What is asp.net with mvc? : Asp.Net MVC
Why do we need Sessions?
What is difference between asp.net and asp?
What are Session states available and its Uses?
What is difference between singleton and single call?
what is loosely coupled solution? How it can be used?
Describe session handling in a webfarm, how does it work and what are the limits?