Navigation

Related Articles

Back to Latest Articles

C# Basics – Exception Handling Statements – Part 9

We take a look at exception handling statements in C# programming language.


Andraz Krzisnik
C# Basics – Exception Handling...

Exception Handling Statements

Sometimes, there comes a situation that where our code might crash. We can handle these kind of situations with exception handling statements. By putting our code into these statements we can test if our code works. And in any case that our code would contain an error, we could execute a block of our own code instead.

We’ll take a look at try… catch… blocks.

So basically if something goes wrong in try block, code in catch block gets executed.


Next Chapter
Show Comments (0)

Comments

Related Articles

C# Tutorial

C# Tutorial: Contrast Stretching with Normalization

This post is a short revision of Contrast Stretch post we already worked on in the past. Where we talked about histogram equalization, which is a little more complex method than...

Posted on by Andraz Krzisnik
C# Basics

C# Basics – Variables and Data Types – Part 4

Variables and Data Types Software works with data that’s stored in the memory. All this data, to be usable, needs to be stored in some defined space. We name these spaces...

Posted on by Andraz Krzisnik