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 basic authentication in web api?
What symbol would you use to denote, the start of a code block in razor views?
What is model first? : Entity framework
What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?
Briefly describe the roles of clr in .net framework?
Explain what is routing?
What is edm (entity data model)? : Entity framework
Can you set the unlimited length for "maxjsonlength" property in config?
what is entity framework?
What is the difference between renderaction and renderpartial?
Is .net framework going away?
What is definingquery in entity framework? : Entity framework
How can you return string result from Action in ASP.Net MVC?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
Is it possible to unit test an mvc application without running the controllers in an asp.net process?