29.05.2015 Views

o_19mgorv9t13a3ko71fev19l81mqa.pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 14-10. Displaying the value of a variable in the Visual Studio code editor<br />

The execution of the statements in the Index action method has not reached the point where a value has been assigned to the<br />

result variable, so Visual Studio shows the default value, which is 0 for the int type. Select the Step Over menu item<br />

in the Visual Studio Debug menu (or press F10) to advance the point of execution to the statement which defines the<br />

ViewBag.Message property and hold your mouse over the result variable again. The debugger executed the statement<br />

that assigns a value to the result variable, and you can see the effect in Figure 14-11.<br />

349

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!