Tag: .Net Framework

Jun 30

Abstract Class

Abstract class is a class that can not be instantiated. To use it you need to inherit it. This class can be used as a base class where you can define certain method that must be implemented in derived class (Class that is going to inherit it) along with that you can also define certain …

Continue reading

Permanent link to this article: http://zappmania.in/2012/06/30/abstract-class.htm

Jun 28

What are session management techniques in .NET?

There are three different techniques of managing session in ASP.NET InProc  Session state is stored locally in memory of ASP.NET worker process. StateServer  Session state is stored outside ASP.NET worker process and is managed by Windows service. Location of this service is specified by stateConnectionString attribute. SQLServer  Session state is stored outside ASP.NET worker process …

Continue reading

Permanent link to this article: http://zappmania.in/2012/06/28/what-are-session-management-techniques-in-net.htm

Jun 27

C# Custom Enumerators Made Simple with the Yield Keyword

An enumerator enables you to iterate over a collection in a foreach loop. You can use foreach to iterate over all C# collection classes, because all C# collection classes inherit from the IEnumerable interface (regular or generic). IEnumerable contains the GetEnumerator method, which returns an enumerator. Occasionally you may find a need to create a …

Continue reading

Permanent link to this article: http://zappmania.in/2012/06/27/c-custom-enumerators-made-simple-with-the-yield-keyword.htm