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 are the new features added from ASP to ASP.NET?
What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?
Which object is used to encapsulate the state of the client and the browser in ASP.NET?
What is the difference between cookie and session?
Write a code for sending an email from asp.net application.
Explain the use of duration attribute of @outputcache page directive.
What do you mean by query string?
Explain what does wsdl stand for?
What is rich control in asp.net?
Difference between response.redirect and server.transfer?
What is postback request?
What are the data controls available in asp.net?
Explain Authentication mechanism in dotnet
What are sql joins?
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?