C# Programming Video Tutorials Lesson 4: Switch Statements
Uploader Comments (babyyoyoboy)
All Comments (22)
-
thanks ive been searching for a way to convert int to work with switches, but i was trying to use a string then back to int.
-
You don't need to put break, unless you don't want a fall through effect
You can also put default anywhere not just the bottom
Consider this:
for default and condition A you want statements X, Y and Z
for condition B you want statements Y and Z
for condition C you want statement Z
then you could do:...
-
Thanks for this and all other videos. Free knowledge at this convenience is seriously awesome. I really appreciate everyone who does this stuff.
-
The C# language is 10000000000times easier the C language
-
I dont understand what the Convert.ToInt32 means...... what does the 32 mean??
-
By far the best C# instruction out there!
I'm working in Expression Blend and VS and have to load a dynamic url into the MediaElement of an silverlight media project I'm doing. I'm usiing C# in the code behind. Know anything about how to do that?
thanks mate, you have saved me, and your probally going to quite alot today with this piece of programming i have got to do
blackmage0 1 year ago
@blackmage0 Just message me if you need more help :P
babyyoyoboy 1 year ago 2
you just fixed my entire program by showing me the conversion lol. thanks
nickrohn93 2 years ago
im glad i could help
babyyoyoboy 2 years ago
if you ant to change the color and add A title here is a few tips
ok first you add this source above
int myInt;
Console.Title = "YOUR TXT HERE");
Console.ForegroundColor = ConsoleColor.Red;
Note you can also use Blue,Green,DarkGreen and mant other colors
shurtz67 2 years ago
First off...
int myInt; right there is worthless...
Second...
Console.Title = "YOUR TXT HERE"); would cause an error because there is a random )
The 3rd line you provided would compile but you didn't provide any specifics about how the line works...
babyyoyoboy 2 years ago