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


Please Help Members By Posting Answers For Below Questions

why DotNetFramework is included in building a software

2440


Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?

859


What is MVVM design pattern?

796


What is the need of Action Filters in ASP.Net MVC

789


Does windows 10 need .net framework?

723


What is viewstart page in mvc?

773


Explain JSON Binding?

852


What is viewdata?

783


What is renderbody?

765


What is the difference between model view and controller?

673


Explain the tools used for unit testing in ASP.Net MVC

837


What is display mode in mvc?

757


Where is tempdata stored?

734


what is msl?

812


The order of the filters that get executed, if the multiple filters are implemented?

812