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
Is .net core faster than .net framework?
Does .NET Framework support SAX?
What is definingquery in entity framework? : Entity framework
Explain peek method in tempdata in asp.net mvc?
What is the .net framework 3.0 (formerly winfx)?
What is layout in mvc?
what is entity framework?
What is ViewData and TempData in ASP.Net MVC?
How can I return string result from action in asp.net mvc?
Explain tempdata in asp.net mvc?
What is storage model? : Entity framework
Where is tempdata stored?
What is the use of view model in asp.net mvc?
what is entity data model?
How to enable Attribute Routing?