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.
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). …
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
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:
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: