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...

Can we have more than 1 partial classes in the same file?

Answer Posted / mahesh kotekar

It is possible to have partial class in same class file.

Partial Class Concept was used in dotnet to provide
practically dividing the class into two or multiple physical
files. In order to keep the complexity of class
simple.During compilation the partial classes join together
to form a single class and works as normal class
partial class First
{
public static void DoSomething1()
{
Console.WriteLine("Executing from First Part of
Class First");
}
}
partial class First
{
public static void DoSomething2()
{
Console.WriteLine("executing from second part of
class First");
}
}

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is entity framework? : Entity framework

1052


What are the levels at which filters can be applied in an asp.net mvc application?

1131


Can you explain the page life cycle of mvc?

998


What is the use of display modes?

1059


What is the difference between entity framework and mvc?

1058


What is the meaning of unobtrusive javascript?

1056


Mention what is the difference between “ActionResult” and “ViewResult” ?

1050


What is asp net framework?

972


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

1003


What is the importance of NonActionAttribute?

1059


What are advantages of Dependency Injection (DI) in ASP.Net MVC?

1099


What is entity framework in asp net?

1095


How does servicing work for the .net framework 3.0?

942


Which are the important namespaces used in ASP.Net MVC?

1091


What is the greatest advantage of using asp.net mvc over asp.net webforms?

1009