Tagged: c#

Creating and Extracting zip files in C# 0

Creating and Extracting zip files in C#

In .NET 4.5, some new classes were added to System.Compression namespace which allows you to create and extract zip files. This article explains how to create and Extract a zip file programmatically using C#.


C# Nullable types

In C# 2.0, a special datatype known as nullable was introduced. This allows you to assign null to value type variables.


C# dynamic type

The dynamic type, introduced in C# 4.0, escapes type checking at the compile time. The dynamic keyword tells the compiler that the type of a variable is unknown or may change at runtime.


C# goto statement

The C# goto statement transfers the program control directly to a specified position or statement.

C# Multithreading 0

C# Multithreading

Multi-threading is the ability of CPU to execute small parts of a program (known as threads), simultaneously. Multitasking allows your program to perform more than one task at a time. It makes your program run faster.


C# Abstract class

An abstract is a type of class that cannot be instantiated. It only allows other classes to inherit from it. The purpose of an abstract class is to provide a common definition of a base class that all derived classes should share. In C#, an abstract class is declared using abstract keyword.


C# Interface

An Interface contains declarations of methods, properties, events etc that a class and structs can inherit. In C#, an interface is created using interface keyword.


C# Operators

In programming languages, an operator is a symbol that instructs the compiler to perform some operations.


Creating an infinite loop in C#

In programming, a loop is a set of statements that are executed until a given expression is evaluated to false. An infinite loop (or endless loop) is a loop that is executed endlessly.


C# do-while loop

The main difference between a while and do-while loop is that in a do-while loop, the statements in the loop will be executed at least once.