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?

Answers were Sorted based on User's Feedback



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

Answer / ssv_sathish

YES, basically, partial classes are meant for sharing or
working on different files. so you can have 2 partial
classes in the same file or different class declared as
partial in the same file, provided PUBLIC is the access
modifier.

Is This Answer Correct ?    35 Yes 4 No

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

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

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

Answer / m.karunakar

yes.more than one programmer working in the same module in
the project.example one progrmmer writing one method in main
system and ononther programmer can also add onother method
are functionlity that class by using partial class.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

How do you initiate a string without escaping each backslash ?

1 Answers  


What is .net framework used for?

0 Answers  


Can I look at the IL for an assembly

1 Answers  


Briefly describe the roles of clr in .net framework?

0 Answers  


What is routeconfig.cs in mvc 4?

0 Answers  


what is mean by COM (component object model) and component based software development? Is it .NET is first COM based technology? Please answer me. Advance thanks.

1 Answers   Excel,


What is the use of the default route {resource}.axd/{*pathinfo} ?

0 Answers  


What are ajax helpers in asp.net mvc?

0 Answers  


Difference between <connectionstring> and <appsettings>

4 Answers  


Microsoft introduced c# as a de facto language of the .NET platform. What is mean by de facto and fot what purpose? Please answer me. Advance thanks.

3 Answers   Excel,


mention what is csdl, ssdl and msl sections in an edmx file?

0 Answers   Microsoft,


What is orm entity framework?

0 Answers  


Categories