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
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?
What are the server controls in asp.net?
Write code to send e-mail from an asp.net application?
Explain how do you deploy your asp.net application?
What is css in asp.net?
How do you do Client-side validation in .Net?
Explain method to handle error using HttpError in Web API?
Is react a template engine?
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net
Define machine.config in .net?
How to find out what version of asp.net I am using on my machine?
What is the use of data set in asp.net?
What is cache in asp net?
What are the data controls available in asp.net?
What are the navigation ways between pages available in ASP.NET?