Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
QuestionReading RSS from c# Pin
Goersch123412-Feb-09 7:26
Goersch123412-Feb-09 7:26 
AnswerRe: Reading RSS from c# Pin
EliottA12-Feb-09 8:15
EliottA12-Feb-09 8:15 
GeneralRe: Reading RSS from c# Pin
Goersch123412-Feb-09 8:24
Goersch123412-Feb-09 8:24 
GeneralRe: Reading RSS from c# Pin
Guffa12-Feb-09 14:40
Guffa12-Feb-09 14:40 
AnswerRe: Reading RSS from c# Pin
emiaj12-Feb-09 8:25
emiaj12-Feb-09 8:25 
GeneralRe: Reading RSS from c# Pin
Goersch123412-Feb-09 8:29
Goersch123412-Feb-09 8:29 
QuestionConvert or Parse Pin
Lodeclaw12-Feb-09 6:43
Lodeclaw12-Feb-09 6:43 
AnswerRe: Convert or Parse Pin
Luc Pattyn12-Feb-09 6:56
sitebuilderLuc Pattyn12-Feb-09 6:56 
Hi,

it depends on the Type of your value:

if value is a string, then value.ToString() is redundant, and both Convert and int.Parse would behave identically (in fact one is calling the other).

if value is some kind of integer to begin with, Convert.ToInt32() is much faster, since no conversion from integer to string, and no conversion from string to int are involved.

if value is something else (a DateTime, a user-defined type, ...) Convert will not accept it,
whereas the value.ToString() result may or may not look like an integer, and be acceptable to int.Parse

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Sunday, June 12, 2011 8:02 AM

AnswerRe: Convert or Parse Pin
akidan12-Feb-09 7:14
akidan12-Feb-09 7:14 
GeneralRe: Convert or Parse Pin
freakyit12-Feb-09 9:18
freakyit12-Feb-09 9:18 
AnswerRe: Convert or Parse Pin
PIEBALDconsult12-Feb-09 12:02
mvePIEBALDconsult12-Feb-09 12:02 
GeneralRe: Convert or Parse Pin
Mycroft Holmes12-Feb-09 14:15
professionalMycroft Holmes12-Feb-09 14:15 
AnswerRe: Convert or Parse Pin
Guffa12-Feb-09 15:06
Guffa12-Feb-09 15:06 
QuestionASP file not being able to to find a class that is in the same namespace. Pin
Steve Holdorf12-Feb-09 6:40
Steve Holdorf12-Feb-09 6:40 
AnswerRe: ASP file not being able to to find a class that is in the same namespace. Pin
Calin Tatar12-Feb-09 11:59
Calin Tatar12-Feb-09 11:59 
Questionpivot table Pin
Dushan12312-Feb-09 6:10
Dushan12312-Feb-09 6:10 
QuestionNeed to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
Tarini Singh12-Feb-09 5:54
Tarini Singh12-Feb-09 5:54 
AnswerRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
musefan12-Feb-09 6:00
musefan12-Feb-09 6:00 
GeneralRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
DaveyM6912-Feb-09 6:19
professionalDaveyM6912-Feb-09 6:19 
GeneralRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
Tarini Singh12-Feb-09 23:26
Tarini Singh12-Feb-09 23:26 
AnswerRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
DaveyM6912-Feb-09 6:18
professionalDaveyM6912-Feb-09 6:18 
AnswerRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
ABitSmart12-Feb-09 15:34
ABitSmart12-Feb-09 15:34 
Questionproblem with é, à, è Pin
abbd12-Feb-09 5:39
abbd12-Feb-09 5:39 
AnswerRe: problem with é, à, è Pin
musefan12-Feb-09 5:46
musefan12-Feb-09 5:46 
AnswerRe: problem with é, à, è [modified] Pin
Luc Pattyn12-Feb-09 5:47
sitebuilderLuc Pattyn12-Feb-09 5:47 

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.