Author: Marinko Spasojevic

C# Basics – Operators in C#

In this article, we are going to talk about operators in C#, how to use them and what are the differences between each of them. Development Environment Setup Data Types, Declarations and Variable Definitions Operators in C# (Current article) 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 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...

Read More

C# Back to Basics – C# Data Types, Declarations and Variable Definitions

In C#, different data types are registered differently. Furthermore, different actions are allowed to be executed upon them as well. For different data types, a certain amount of memory space is reserved on our computer. With each data type we define: How to register data in memory The possible values for that data Possible actions on the data So, let’s talk more about data types in C#. Development Environment Setup Data Types, Declarations and Variable Definitions (Current article) 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,...

Read More

C# Basics – Development Environment Setup

In this article, we are going to talk about what IDE is and how we can use Visual Studio to create a new project. Development Environment Setup (Current article) 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 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...

Read More

Global Error Handling in ASP.NET Core Web API

The exception handling features help us deal with the unforeseen errors which could appear in our code.  To handle exceptions we can use the try-catch block in our code as well as finally keyword to clean up resources afterward. Even though there is nothing wrong with the try-catch blocks in our Actions in Web API project, we can extract all the exception handling logic into a single centralized place. By doing that, we make our actions more readable and the error handling process more maintainable. If we want to make our actions even more readable and maintainable, we can...

Read More

ASP.NET Core Authentication with JWT and Angular – Part 2

Angular is a modern framework for developing single page web applications. Angular is developed and backed by Google. Back in days creating the single page applications was a nightmare for developers. We had to manage everything from the state management to the HTTP calls. But those days are definitely gone. Now we have plenty of JavaScript frameworks available on the market, ready for the development process of the amazing web applications. Angular is one of those frameworks. It’s both a popular and feature-rich framework that you can get to know and work with easily. ASP.NET Core Authentication with JWT and...

Read More