Programming for Idiots (C#) - Take 2

08/07/2011 18:42 Valkmax#121
Will someone reup unit 2 lesson 2
08/11/2011 17:52 gligor1#122
I use Visual Studio 2008 and when try to cast int to string ( which is not allowed)with as -cast it doesnt give me any error but should give this
[Only registered and activated users can see links. Click Here To Register...]
if try this with type-cast it gives me error as it should be. Is that cuz i use Visual Studio 2008?
08/11/2011 20:52 unknownone#123
There is no cast between a string and an int. The "as" operator will return null if a cast is invalid. This operator is really syntactic sugar for
Code:
o is string ? (string)o : (string)null
Of course "o is string" is never true in your case, so it will always return null.

If you try to use (string)o when o is not a string, you'll get an invalid cast exception.

You should instead use i.ToString() to get the value as a string.
08/15/2011 22:14 Silen†#124
Quote:
Originally Posted by Valkmax View Post
Will someone reup unit 2 lesson 2
The link of Unit II, Lesson 2 is dead. Could someone/ the owner of the thread fix it?
Thanks!
08/24/2011 05:46 agathom#125
Need some working links :(..

thanks in advance,
10/01/2011 16:05 Silent-Death#126
Quote:
Originally Posted by Silen† View Post
The link of Unit II, Lesson 2 is dead. Could someone/ the owner of the thread fix it?
Thanks!
I second this request.
11/20/2011 08:22 andrewxxx#127
just checked unit one links , lesson 3 not working
hybird u r awesome :) but u cant stop there buddy i need the last unite :)
good luck that was good one , ur style in explaining stuff was amazing :)

P.S working on unite 2 , the second lesson saying
Sorry, the file you requested is not available.
Reasons -.-
- File date limit has expired.
- File was not successfully uploaded.
11/20/2011 18:11 BaussHacker#128
andrewxxx read the posts above. Hybrid obviously quitted it.
11/20/2011 22:27 V3T™#129
this will help me a lot at school tomorrow
11/21/2011 14:42 andrewxxx#130
Quote:
Originally Posted by BaussHacker View Post
andrewxxx read the posts above. Hybrid obviously quitted it.
well there is more around but the point is that i like his style in programming in general
thanks for notify me :)
01/29/2012 14:55 Heroka#131
[Only registered and activated users can see links. Click Here To Register...]
mr.infamous u awesome programmer thx.
02/18/2012 01:12 2slam#132
links dead
02/27/2012 10:09 PretendTime#133
Quote:
Originally Posted by 2slam View Post
links dead
I have them all but unit 2 lesson 2.
02/27/2012 10:53 skrill_sebastian#134
Hey i've been really trying to learn this very hard but it says that lesson 3 is removed so im kinda stuck mind re posting please? thanks man i really appreciate al your time and effort
02/27/2012 11:27 I don't have a username#135
Above.