Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about using an if in a string Pin
skeeterz711-Sep-13 18:31
skeeterz711-Sep-13 18:31 
GeneralRe: Question about using an if in a string Pin
Dave Kreskowiak1-Sep-13 18:37
mveDave Kreskowiak1-Sep-13 18:37 
GeneralRe: Question about using an if in a string Pin
skeeterz711-Sep-13 18:46
skeeterz711-Sep-13 18:46 
GeneralRe: Question about using an if in a string Pin
BillWoodruff1-Sep-13 19:42
professionalBillWoodruff1-Sep-13 19:42 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 3:58
mveOriginalGriff2-Sep-13 3:58 
GeneralRe: Question about using an if in a string Pin
AmitGajjar2-Sep-13 20:10
professionalAmitGajjar2-Sep-13 20:10 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 21:24
mveOriginalGriff2-Sep-13 21:24 
GeneralRe: Question about using an if in a string Pin
Dave Kreskowiak2-Sep-13 5:58
mveDave Kreskowiak2-Sep-13 5:58 
skeeterz71 wrote:
The string with the name ashley would be created at that time


Ok, think about this. You just said that if the user types a string into the Console or into a TextBox that a variable with the same name would be created. That's absurd for the following reason: What if the user typed:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis cursus justo arcu, quis euismod sapien blandit malesuada. Nam nisl augue, ornare id ipsum a, tristique feugiat justo. Donec sed eros id metus aliquam egestas. Donec fermentum condimentum mollis. Donec at auctor velit, non elementum purus. Maecenas congue, turpis non rutrum feugiat, magna ligula iaculis libero, eget aliquam erat magna at erat. Proin at mauris scelerisque, ultrices ipsum ac, mollis magna.


?? You really think a variable with that name is going to be created??

Seriously, you REALLY need to pickup a beginners book on C#. You will only serve to frustrate yourself if you don't properly learn the fundamentals.

GeneralRe: Question about using an if in a string Pin
blitzkrieged2-Sep-13 14:16
blitzkrieged2-Sep-13 14:16 
AnswerRe: Question about using an if in a string Pin
liveoffedge2-Sep-13 0:15
professionalliveoffedge2-Sep-13 0:15 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 3:49
mveOriginalGriff2-Sep-13 3:49 
GeneralRe: Question about using an if in a string Pin
Keith Barrow2-Sep-13 6:21
professionalKeith Barrow2-Sep-13 6:21 
GeneralRe: Question about using an if in a string Pin
skeeterz713-Sep-13 6:30
skeeterz713-Sep-13 6:30 
AnswerRe: Question about using an if in a string Pin
AmitGajjar2-Sep-13 20:02
professionalAmitGajjar2-Sep-13 20:02 
QuestionDistinct Row or Rows in a datatable Pin
smh139231-Aug-13 22:00
smh139231-Aug-13 22:00 
AnswerRe: Distinct Row or Rows in a datatable Pin
Mycroft Holmes31-Aug-13 22:42
professionalMycroft Holmes31-Aug-13 22:42 
GeneralRe: Distinct Row or Rows in a datatable Pin
smh13922-Sep-13 10:48
smh13922-Sep-13 10:48 
AnswerRe: Distinct Row or Rows in a datatable Pin
susanna.floora1-Sep-13 19:09
susanna.floora1-Sep-13 19:09 
GeneralRe: Distinct Row or Rows in a datatable Pin
Mycroft Holmes1-Sep-13 19:52
professionalMycroft Holmes1-Sep-13 19:52 
QuestionPut DLL file to another location Pin
Midnight Ahri31-Aug-13 14:43
Midnight Ahri31-Aug-13 14:43 
AnswerRe: Put DLL file to another location Pin
Dave Kreskowiak31-Aug-13 15:10
mveDave Kreskowiak31-Aug-13 15:10 
AnswerRe: Put DLL file to another location Pin
Abhinav S31-Aug-13 15:51
Abhinav S31-Aug-13 15:51 
QuestionHow to get user names accessing ACCESS database Pin
BajrangSingh31-Aug-13 8:22
BajrangSingh31-Aug-13 8:22 
AnswerRe: How to get user names accessing ACCESS database Pin
Dave Kreskowiak31-Aug-13 8:29
mveDave Kreskowiak31-Aug-13 8:29 
GeneralRe: How to get user names accessing ACCESS database Pin
BajrangSingh31-Aug-13 9:32
BajrangSingh31-Aug-13 9:32 

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.