what are partial classes and their use?
Answer Posted / arunajyothi.m
“partial” keyword can be used to split a single class,
interface, or struct into multiple, separate files in
ASP.NET (using C# as the language). This permits multiple
developers to works on these files, which can later be
treated as a single unit by the compiler at the time of
compilation and compiled into MSIL code.
1.Partial classes can improve code readability and
maintainability by providing a powerful way to extend the
behavior of a class and attach functionality to it.
2.The partial modifier can only appear immediately before
the keywords class, struct, or interface.
3.Nested partial types are allowed in partial-type
definitions.
4.Using partial classes helps to split your class
definition into multiple physical files.
5.Note that the partial keyword applies to classes,
structs, and interfaces, but not enums
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
Which is an advantage of application service providers?
Whats the difference between abstract factory pattern and factory pattern?
What is postback request?
Difference between web user control and web custom control?
Is asp.net mvc front end or backend? : Asp.Net MVC
How many types of state management are there in asp net?
What are server activated objects?
How does the iis work?
Which class is used to send an email message from an ASP.NET Web page?
What is css and what is it used for?
What are the components of ado.net?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
Web API supports which protocol?
What is the difference between pathparam and queryparam?