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

What is the meaning of unobtrusive javascript? Explain us by any practical example.

565


Mention the core components of .net framework?

572


What is Layout in ASP.Net MVC?

575


What is the version number for the next version of the .net framework, codenamed �orcas�?

483


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

503






What are ajax helpers in asp.net mvc?

588


What are Scaffold templates in ASP.Net MVC?

573


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

548


what is entity framework?

595


Can you use Razor code in Javascript in ASP.Net MVC?

663


What is domain class model?

514


What is basic authentication in web api?

527


Explain tempdata in mvc?

565


mention what is the difference between ado.net and classic ado?

567


what is use of entitydatasource control?

604