Click here to Skip to main content
15,910,358 members
Home / Discussions / C#
   

C#

 
AnswerRe: Unable to Load XML Pin
lmoelleb11-Jan-06 3:14
lmoelleb11-Jan-06 3:14 
GeneralRe: Unable to Load XML Pin
Samy Lahur11-Jan-06 4:16
Samy Lahur11-Jan-06 4:16 
AnswerRe: Unable to Load XML Pin
KaptinKrunch11-Jan-06 3:15
KaptinKrunch11-Jan-06 3:15 
GeneralRe: Unable to Load XML Pin
Samy Lahur11-Jan-06 4:15
Samy Lahur11-Jan-06 4:15 
Question.parse vs casting Pin
fmardani11-Jan-06 2:27
fmardani11-Jan-06 2:27 
AnswerRe: .parse vs casting Pin
User 665811-Jan-06 3:03
User 665811-Jan-06 3:03 
AnswerRe: .parse vs casting Pin
Curtis Schlak.11-Jan-06 3:25
Curtis Schlak.11-Jan-06 3:25 
AnswerRe: .parse vs casting Pin
Guffa11-Jan-06 11:17
Guffa11-Jan-06 11:17 
Parsing takes a string and tries to interpret it as a value, for an example a number or a date.

Casting will either tell the compiler to handle an object as a specific type, or transform a data type to a similar data type.

For an example, you can cast a string into the type Object (as String inherits from Object), then cast it back to the type String.

You can safely cast to a type with higher precision, like from an int to a long. You can also cast to a lower presicion type, like from a long to an int, but that will cause an exception if the value is to large.

You can't use casting instead of parsing. For an example you can't cast a string to an int.

---
b { font-weight: normal; }


-- modified at 17:18 Wednesday 11th January, 2006
QuestionHow to get the IP address of the current host? Pin
bouli11-Jan-06 1:13
bouli11-Jan-06 1:13 
AnswerRe: How to get the IP address of the current host? Pin
mikailcetinkaya11-Jan-06 9:09
mikailcetinkaya11-Jan-06 9:09 
GeneralRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 9:34
mveDave Kreskowiak11-Jan-06 9:34 
AnswerRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 9:32
mveDave Kreskowiak11-Jan-06 9:32 
GeneralRe: How to get the IP address of the current host? Pin
bouli11-Jan-06 10:15
bouli11-Jan-06 10:15 
GeneralRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 10:53
mveDave Kreskowiak11-Jan-06 10:53 
QuestionFinger print scanner Access in C# Pin
Ckhurana11-Jan-06 0:51
Ckhurana11-Jan-06 0:51 
AnswerRe: Finger print scanner Access in C# Pin
Dave Kreskowiak11-Jan-06 5:45
mveDave Kreskowiak11-Jan-06 5:45 
Questionobject initialization Pin
bidisha_tina11-Jan-06 0:06
bidisha_tina11-Jan-06 0:06 
AnswerRe: object initialization Pin
Colin Angus Mackay11-Jan-06 0:13
Colin Angus Mackay11-Jan-06 0:13 
GeneralRe: object initialization Pin
bidisha_tina11-Jan-06 0:29
bidisha_tina11-Jan-06 0:29 
GeneralRe: object initialization Pin
Colin Angus Mackay11-Jan-06 0:40
Colin Angus Mackay11-Jan-06 0:40 
GeneralRe: object initialization Pin
bidisha_tina11-Jan-06 0:51
bidisha_tina11-Jan-06 0:51 
QuestionEventHandling for Controls inserted(OLE way) in a RichTextBox Pin
Linda Thomas10-Jan-06 23:36
Linda Thomas10-Jan-06 23:36 
QuestionFlicker Free Drawing in C# Pin
AB777110-Jan-06 23:11
AB777110-Jan-06 23:11 
AnswerRe: Flicker Free Drawing in C# Pin
[Marc]11-Jan-06 1:44
[Marc]11-Jan-06 1:44 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 2:00
AB777111-Jan-06 2:00 

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.