Join Bruce Van Horn for an in-depth discussion in this video Understanding runtime exceptions, part of C# Essential Training: 2 Flow Control, Arrays, and Exception Handling.
- (instructor) Throughout this course,…you've, no doubt, noticed that I have made…more than one mistake along the way.…It happens to everyone.…Sooner or later, you type something in that…the compiler can't handle.…For example, if I type something in like…"var"…some more words equals list string"…like so. That's just flat out not going to work,…because I forgot to add the new keyword.…
It says down at the bottom-…"list 'T' cannot be used like a method".…That is effectively a syntax mistake.…And that is the kind of mistake that…the compiler is going to catch,…and Visual Studio is going to warn you about.…The more insidious bugs and problems come up at runtime.…A runtime exception occurs, when you've got a mistake…in your code, a problem with your code.…And it's not going to be caught by the compiler.…So, we have such a condition here,…and it's a very common one.…
Let's go ahead and run this,…and we'll see what the problem is.…So it's going to compile, it's going to try to run,…and it's going to explode the first time…
AuthorBruce Van Horn
- Writing unit tests in C#
- Working with simple and multidimensional arrays
- Managing ordered and unordered data with lists
- Evaluating conditions with if-else statements
- Using OR, AND, and NOT operators
- Building loops
- Debugging and handling exceptions
- Creating the final build of your C# project
Skill Level Beginner
C# Object-Oriented Programming Tips and Trickswith Jesse Freeman58m 39s Intermediate
1. Unit Testing and Test-Driven Development
2. Arrays and Collections
3. Flow Control
4. Exception Handling
5. Getting to Production
Next steps1m 57s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.