Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what are partial classes and their use?



what are partial classes and their use?..

Answer / 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

More ASP.NET Interview Questions

What is %20 in a url?

0 Answers  


what exception is thrown when you do a response.redirect

2 Answers   IBM,


What are the asp.net list controls and difference between them?

0 Answers  


What is the difference between GridView and Repeater controls in ASP.NET?

0 Answers  


what does membership class provide?

1 Answers  


What data types do the RangeValidator control support?

2 Answers  


How can you pass multiple complex types in Web API?

0 Answers  


What is true about application service provider?

0 Answers  


How many rounds are there for a software programmer to clear interview in any IT industries(MNC).

3 Answers   HCL,


What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?

0 Answers  


What is Web Server Control Templates.?

0 Answers   MCN Solutions,


How do I know asp.net mvc version? : Asp.Net MVC

0 Answers  


Categories