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 is session in web technology?
How to manage different kinds of sessions in ASP.NET?
What is an asp.net web form?
How can we identify that the Page is Post Back?
Explain the flow of processing of the request? : asp.net mvc
what is loosely coupled solution? How it can be used?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
How can we use Web API with ASP.NET Web Form?
What is difference cookie and session?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
Which browsers support the xmlhttprequest object?
What is application in asp net?
Is it possible for me to change my aspx file extension to some other name?
What is asp.net mvc? : asp.net mvc