.Net C# Development

Delegates

It’s possible to write code for years without deliberately using delegate, Action, or Func types. I say “deliberately” because we may have used them without realizing it. Knowing what these types represent makes reading code easier. Knowing how to…

.Net C# Development

Dispose and Finalize

Dispose  Garbage collector (GC) plays the main and important role in .NET for memory management so programmer can focus on the application functionality. Garbage collector is responsible for releasing the memory (objects) that is not…

.Net C# Development

Exception Handling

Exception handling in C#, suppoted by the try catch and finaly block is a mechanism to detect and handle run-time errors in code. The .NET framework provides built-in classes for common exceptions. The exceptions are…

.Net C# Development

Abstract Class and Method

Data abstraction is the process of hiding certain details and showing only essential information to the user.Abstraction can be achieved with either abstract classes or interfaces (which you will learn more about in the next chapter). The abstract keyword is used for classes…

.Net C# Development

Extension Methods

Extension methods enable you to “add” methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. Extension methods are static methods, but they’re called as if they were…