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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stateless model?

597


How we can register the Area in ASP.Net MVC?

689


Explain how to use multiple submit buttons in ASP.Net MVC?

727


Mention some action filters which are used regularly in ASP.Net MVC?

624


What are the components of the .net framework.

663






What are Scaffold templates in ASP.Net MVC?

663


What are the components required to create a route in ASP.Net MVC?

668


Is it possible to share a view across multiple controllers?

619


Explain ASP.NET MVC Identity and Security?

648


What is representational state transfer (rest) mean?

643


Describe the gac in the .net framework.

665


Can we change web.config settings from iis?

653


What is ViewData and TempData in ASP.Net MVC?

665


What are the benefits of .net framework?

650


Where is the new functionality in the .net framework 3.0 (such as wcf, wf, wpf, and cardspace) installed to? Is that different from where the .net framework 2.0 is installed to?

635