Image for post
Image for post

Introduction

Arrays and Lists are the most used data structures in C# programming language. Both of them store data like integer, string, instances of the class, and so on. They seem very similar at first glance, but actually, they have some necessary differences which affect their usages. Depends on the situation we can prefer to Arrays than Lists or vice versa. In this blog, I am going to explain which one is better based on what we want to do.

Arrays

Initially, let’s look at the Array’s definition:

An array is the data structure that stores a fixed number of literal values of the same type. If we want an array with the different types in it, you can define “object” as its type (object type is not preferable, because they are complex). …


Image for post
Image for post

Method Overloading (Polymorphism) in C#

In this blog, I am going to explain what is Method Overloading, also known as Polymorphism.

Let’s say we want two different methods with the same name. If we define methods like this, it would give us compiler error:

CS0111: Type “Class_Name” already defines a member called “MyMethod” with the same parameter types

But how can we handle this error ?

So, this is where Method Overloading would be useful. Basically, Method Overloading means “defining method with the same name in different forms.” They can be overloaded in 3 different ways:

  • Having a different number of parameters
  • Having different types of parameters
  • Having a different order of…


Image for post
Image for post

Do you think that video downloader is hard to make? If so, you are wrong. In this blog, I am going to explain how to make that. When you finish reading the whole blog, you will be able to make a video downloader yourself.

We will use C# programming language, .NET framework and an external library. So, if you are ready, let’s get started by creating a new project.

Note: I will use Visual Studio 2019 IDE, but you can use whatever IDE you want.

To create a new project, see the following steps:

  1. In Visual Studio 2019, click “Create a new…

About

Elnur

Self-Taught Game Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store