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 do you mean software devlopment ?

9 Answers   HCL,


Which object encapsulates state or data of a user?

0 Answers  


What types of data validation events are commonly seen in the client-side form validation?

0 Answers  


Describe Segmentation With Paging?

0 Answers   MaxSolPro,


what is the difference between response.write() and response.output.write()?

0 Answers  


Can you change a master page dynamically at runtime? How?

0 Answers  


How many Language support in ASP.NET?

11 Answers   TCS,


What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.

0 Answers  


What is boxing?

8 Answers   IBM, Misys, Siebel Systems,


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

0 Answers  


Which method is used to perform all validation at the page level?

0 Answers   Sans Pareil IT Services,


Usage of web.config?

2 Answers   Microsoft,


Categories