What is partial classes in .net?

What is partial classes in .net?

.Net2.0 supports the concept of partial classes which is unlike the concept of one class one file. In .Net technology, one can define a single class over multiple files using the concept of partial classes. When an application is compiled, it groups all the partial classes and considers them as a single object. This allows for separation of concerns, e.g.: Aspx page class might have the UI code and the Aspx.cs class file has the code for it.

Example:
public partial class MyClass
{
    public void Attend()
    {
    }
}

public partial class MyClass
{
    public void Dismiss()
    {
    }
}
How to pass a querystring from an .asp page to aspx page
ASP.NET - Explain how to pass a querystring from an .asp page to aspx page - Yes you can do it using a hyperlink...
Overview of the .NET Compact Framework
.NET Compact Framework - .NET Compact Framework is a scaled down versions of .NET framework for supporting Windows CE based mobile....
What is Language Integrated Query (LINQ)?
Language Integrated Query (LINQ) - LINQ is a set of extensions to .NET Framework that encapsulate language integrated query, set and other transformation operations....
Post your comment