Beginning C# - Part 10: Variable Scope | Ray Wenderlich

In this episode, you'll learn about scope and what it means when working with variables.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3247-beginning-c/lessons/10

Hi, Just wanted to let you know that from 4:40 to 5:15 the video editing becomes messed up, following which a similar section of the lesson repeats using a different take (compare 3:20 to 5:15).

Yup - looks like you get a notification, and decide to start the lesson over at about 5:15.

Speaking of errors, the sample code to be correct is incorrect, and I stared at it for a long time trying to figure out how to add an int to an int and get a smaller number than I started with without changing any given values. int value should be set as 36.

That’s what I thought! But you can add a int to an int and get a smaller value. The int you are adding just has to be a negative number :smiley: