Author: Marinko Spasojevic

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. Development Environment Setup Data Types, Declarations and Variable Definitions Operators in C# Type Conversion Input and Output in C# Working with Strings Conditions in C# (If, If-Else, If-ElseIf, Switch-Case) Loops(While, Do-While, For) Handling Exceptions Access Modifiers (Current article) Methods Ref and Out Keywords Recursion and Recursive Methods Arrays (single-dimensional and multi-dimensional arrays) Working with Files, StreamWriter and StreamReader Working with Files, File, and Directory This article is part of the series For the complete navigation of this series check...

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. Development Environment Setup Data Types, Declarations and Variable Definitions Operators in C# Type Conversion Input and Output in C# Working with Strings Conditions in C# (If, If-Else, If-ElseIf, Switch-Case) Loops(While, Do-While, For) Handling Exceptions (Current article) Access Modifiers Methods Ref and Out Keywords Recursion and Recursive Methods Arrays (single-dimensional and multi-dimensional arrays) Working with Files, StreamWriter and StreamReader Working with Files,...

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#. Development Environment Setup Data Types, Declarations and Variable Definitions Operators in C# Type Conversion Input and Output in C# Working with Strings Conditions in C# (If, If-Else, If-ElseIf, Switch-Case) Loops(While, Do-While, For) (Current article) Handling Exceptions Access Modifiers Methods Ref and Out Keywords Recursion and Recursive Methods Arrays (single-dimensional and multi-dimensional arrays) Working with Files, StreamWriter and StreamReader Working...

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. Development Environment Setup Data Types, Declarations and Variable Definitions Operators in C# Type Conversion Input and Output in C# Working with Strings Conditions in C# (If, If-Else, If-ElseIf, Switch-Case) (Current article) Loops(While, Do-While, For) Handling Exceptions Access Modifiers Methods Ref and Out Keywords Recursion and Recursive Methods Arrays (single-dimensional and multi-dimensional arrays) Working with Files, StreamWriter and StreamReader Working with Files, File, and Directory This article is part of the...

Read More

C# Back to Basics – Working With Strings

The string type represents a character array, and its length is determined by the Length property. All the character positions inside that string are enumerated from 0 to Length-1. C# provides us with many different methods to work with strings and we are going to examine ones that are used most of the time. Development Environment Setup Data Types, Declarations and Variable Definitions Operators in C# Type Conversion Input and Output in C# Working with Strings (Current article) Conditions in C# (If, If-Else, If-ElseIf, Switch-Case) Loops(While, Do-While, For) Handling Exceptions Access Modifiers Methods Ref and Out Keywords Recursion and...

Read More