Author: Marinko Spasojevic

C# Back to Basics – Methods in C#

Hello and welcome to the Methods in C# article in which we are going to talk… well about methods :D. Furthermore, we are going to learn how to use methods in C#, what is the method signature, and how to use parameters and arguments. For the complete navigation of this series check out: C# Back to Basics. If you want to download the source code for our examples, you can do that from here Methods in C# Source Code. In this article, we are going to talk about: Method Signatures Parameters and Arguments Optional Parameters Conclusion In our previous...

Read More

C# Back to Basics – Access Modifiers in C#

In this article, we are going to explain different types of access modifiers in C# and what their purpose is. For the complete navigation of this series check out: C# Back to Basics. Access modifiers specify the accessibility of an object and all of its members in the C# project. Moreover, all the C# types have access modifiers implemented, even if they are not stated (default access modifier is applied then). Even though this topic is more related to the object-oriented concept, we will talk about it now, thus making easier to understand the next article about methods which...

Read More

C# Back to Basics – Handling Exceptions in C#

In this article, we are going to learn how to use try-catch blocks while Handling exceptions in C#. Moreover, we are going to learn how to use multiple catch blocks to handle more specific exceptions in our code. For the complete navigation of this series check out: C# Back to Basics. If you want to download the source code for our examples, you can do that from here Handling Exceptions in C# Source Code. This post is divided into several sections: What is Exception Try-Catch Block Specific Exceptions Conclusion What is Exception The exception is a problem that appears...

Read More

C# Back to Basics – Loops in C#

In this article, we are going to learn how to use loops in C#, what type of loops exist, and when to use them. We will use a couple examples to closely explain the usage of each loop in C#. For the complete navigation of this series check out: C# Back to Basics. If you want to download the source code for our examples, you can do that from here Loops in C# Source Code. Let’s dig in. In this article, we are going to talk about: While Loop For Loop Do-While Loop While Loop While loop is a...

Read More

C# Back to Basics – Conditions in C#

In this article, we are going to talk about condition statements in C#. We will learn how to write simple condition statements, nested condition statements, and multiple condition statements. For the complete navigation of this series check out: C# Back to Basics. If you want to download the source code for our examples, you can do that from here Conditions in C# Source Code. Let’s begin. Basic Condition Statements If we want to execute some expression but only if some condition is met, then we need to use conditional statements. To create such a statement we need to use...

Read More