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
Explain About WebService
What is the main differences between asp and asp.net?
What is server infrastructure?
Is asp.net and .net the same?
Are cookies stored on server or client?
What is a viewbag?
Distinguish between Server-side and Client-side code with its functionality?
What is an assembly? Explain its parts.
How can you implement encapsulation in asp.net?
What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?
What is the difference between session and viewstate?
How many types of controls are there in asp.net?
Where is session data stored in asp net?
How does ASP.NET framework maps client side events to Server side events.?
What websites use asp.net?