Category: C#.Net

Multithreading in C# 0

Multithreading in C# with Examples

What is Multithreading in C#? Multithreading in C# will get rid of the difficulties faced in sequential processing. In this article I will explain all the multithreading concepts which will also cover multithreading in...

C# Logical Questions for Interviews 0

C# Logical Questions for Interviews

Below are the list of most frequently asked C# logical questions for clearing technical interviews. Swap two number without using temp variable     private void SwapTwoNumbersWithoutTemp()        {      ...

Delegate with example 0

Delegate with example

A delegate is a type-safe object that can point to another method (or possibly multiple methods) in the application, which can be invoked at later time.Delegates also can invoke methods Asynchronously.A delegate type maintains...

C# Design Patterns with Examples 1

C# Design Patterns with Examples

In this artcle I will give the glimpse of overview on C# Design Patterns with Examples. Design Patterns simplifies software programs by providing standardized and efficient solutions.  According to MSDN, “A design pattern is...

List to CSV in C# 0

List to CSV in C#

public class ListToCSV {        private void btnStart_Click(object sender, EventArgs e)        { bool isHeaderRow = true; string outputCSV = CreateCSVTextFile(objList, entityType, “,”, isHeaderRow); //To append new records to existing...

C# Interview Questions Part 1 1

C# Interview Questions Part 1

1. Can we override the properties and apply polymorphism on these? Yes, You can. Public Class Stud Public Property P() As String Get End Get Set(ByVal Value As String) End Set End Property End...

Difference between Abstraction and Encapsulation 0

Difference between Abstraction and Encapsulation

Before we know about the difference between abstraction and encapsulation first we know about what is abstraction and what is encapsulation in object oriented programming. What is Abstraction? Abstraction is one of the key...

C# Interview Questions Part 2 1

C# Interview Questions Part 2

1. When should we use abstract class? We would create an abstract class, when we want to move the common functionality of 2 or more related classes into a base class and when, we...

Delegates in C# 0

Delegates in C# with Simplified Explanation

Delegates are defined as “a reference type that can be used to encapsulate a method with a specific signature”.The use of delegates is involved in event handlers, callbacks, asynchronous calls and multi-threading, among other...

Polymorphism 1

Polymorphism Real time Example in C# Updated 2020

In this article I would like to explain about Polymorphism with real time example, before we see that, first we will look into Polymorphism definition and types of Polymorphism. Polymorphism Definition or What is...

Delegates in C# 0

Delegates in C#

A delegate is a type-safe object that can point to another method (or possibly multiple methods) in the application, which can be invoked at later time. Delegates also can invoke methods Asynchronously. A delegate...

Static Class and Static Members in C# 0

Static Class and Static Members in C#

In C# static keyword is used to create a static class. A static class in C# is a class that cannot be instantiated. A static class can only contain static data members including static...