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
Is asp net front end or backend?
What’s difference between “optimistic” and “pessimistic” locking?
Which dll handles the request of .aspx page?
Is asp.net easy to learn?
Where is the session stored?
How would you enable impersonation in the web.config file?
benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks
What is Pre-Render event in ASP.NET?
What is the difference between login controls and forms authentication?
How do active server pages work?
What is state management technique?
Explain how cookies work. Give an example of cookie abuse.
Explain the difference between asp & asp.net.
Why is global asax is used for?
what is publisher?