what are partial classes?
Answer Posted / anil
Partial class is th one feature in V2.0 where you can split
the functionalty of the single file in multiple files.
This is helpful on working simultaneously on same file,
clearly separates Business Logic and UI, separets logic
from single file to multiple files.
File1
Imports system
Interface IPartialInterface
sub abc( byval str as string)
sub abc()
End interface
Partial Class DemoPartialClass
dim strName a string
strName = "Anil"
Response.Write(strName)
End Class
File2
Imports system
Implements IPartialInterface
Partial Class DemoPartialClass
Public sub abc(ByVal strName as string)
Dim strValue as string
strValue = strName
End Sub
End Class
File 3
Imports system
Implements IPartialInterface
Partial Class DemoPartialClass
public sub abc()
response.write(strName)
End Sub
End Class
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is RouteConfig.cs in ASP.Net MVC 4?
what is minimum requirement for entity framework applications to run?
Explain how you can implement Ajax in MVC?
How to use Jquery Plugins in ASP.Net MVC validation?
How does the .net framework 3.0 relate to the .net framework 2.0?
How do you specify comments using razor syntax?
Is .net framework backwards compatible?
why DotNetFramework is included in building a software
Possible ways to prevent xss attacks on mvc application?
what is entity framework advantage?
what is linq to entities?
What is work of clr?
Explain dependency resolution?
What operating systems will the .net framework 3.0 be available for?
What is the .net framework?