Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
Questionsetting win app mail Pin
shawn41411-Mar-08 8:32
shawn41411-Mar-08 8:32 
GeneralRe: setting win app mail Pin
Christian Graus11-Mar-08 8:54
protectorChristian Graus11-Mar-08 8:54 
GeneralRe: setting win app mail Pin
Ravenet11-Mar-08 17:31
Ravenet11-Mar-08 17:31 
Questiondynamic variables inside While loop Pin
Member 278914211-Mar-08 8:03
Member 278914211-Mar-08 8:03 
GeneralRe: dynamic variables inside While loop Pin
Christian Graus11-Mar-08 8:16
protectorChristian Graus11-Mar-08 8:16 
GeneralRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 8:29
Member 278914211-Mar-08 8:29 
QuestionRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 9:01
Member 278914211-Mar-08 9:01 
GeneralRe: dynamic variables inside While loop Pin
Christian Graus11-Mar-08 9:10
protectorChristian Graus11-Mar-08 9:10 
"one" and "two" were arbitrary examples - the point was simply that the value given to the variable inside the second scope, applied to the first scope, too. I was illustrating that in your instance, you have a variable named uri in the outer scope, and so you couldn't create one with the same name in the inner scope, and if you reused the outer scope one to keep the same name, you would find that setting it, changed it for the outer scope.

Wow, now I'm confused Smile | :)

I was showing that if you used uri where you were putting Uri uri and getting the error, you would have flow on effects.

If you need to keep the variables you wanted to name uri1, uri2, etc for any reason, a list or array is the way to do that. If you were creating a variable for loop processing that is not reused, then just use a different name, like uriLoop or something.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 9:12
Member 278914211-Mar-08 9:12 
AnswerRe: dynamic variables inside While loop Pin
buchstaben11-Mar-08 8:18
buchstaben11-Mar-08 8:18 
GeneralIndicate column sorting in DataGridView column Pin
AndrusM11-Mar-08 7:58
AndrusM11-Mar-08 7:58 
QuestionHelp on LINQ Pin
belzer11-Mar-08 7:50
belzer11-Mar-08 7:50 
General[Cross Post] Re: Help on LINQ Pin
Scott Dorman11-Mar-08 8:03
professionalScott Dorman11-Mar-08 8:03 
GeneralRe: [Cross Post] Re: Help on LINQ Pin
belzer11-Mar-08 8:08
belzer11-Mar-08 8:08 
GeneralRe: [Cross Post] Re: Help on LINQ Pin
Scott Dorman11-Mar-08 8:24
professionalScott Dorman11-Mar-08 8:24 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 8:50
professionalScott Dorman11-Mar-08 8:50 
GeneralRe: Help on LINQ Pin
belzer11-Mar-08 9:17
belzer11-Mar-08 9:17 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 9:40
professionalScott Dorman11-Mar-08 9:40 
Questionconvert byte[] to short[] Pin
eyalbi00711-Mar-08 7:44
eyalbi00711-Mar-08 7:44 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 7:54
m@u11-Mar-08 7:54 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 8:01
eyalbi00711-Mar-08 8:01 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 8:08
m@u11-Mar-08 8:08 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 21:48
eyalbi00711-Mar-08 21:48 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 22:52
m@u11-Mar-08 22:52 
GeneralC# ncurses Pin
marwooj11-Mar-08 7:36
marwooj11-Mar-08 7:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.