Tag: C#

What is Extension Methods

Extension Methods is one of a nice features introduced with .Net 3.0 that allow developers to add new functionalities to existing data types without having a need to inherit from these types or compile old code. For example, if you are encrypting and decrypting strings in your application, wouldn’t it nice to have a code like Read More …

Loops Performance differences in .Net

I never thought there will be a big different when you use different approaches to iterate through a collection of objects. I knew there are some differences between FOREACH/WHILE/FOR loops, but I never thought the different will be as much as an article I read recently in an article published on codekicks site. The article Read More …

How to Compress Files in .Net

There is many options to compress files, and .net framework provide you with 2 easy ways to do it. Basically there are 2 class under System.IO.Compression namespace. More specifically those classes are:             1. GZipStream             2. DeflateStream Both of these classes has certain usage. I will start first by explaining how to use each Read More …

Security Concerns – Part 1

Securing your web application is a hard task and needs lot of thoughts and work. One of the basic principles of securing your web application is blocking system-level information from been known by end user. I mean by system-level information, Example of things that should be un-known for end users What DB you are using Read More …