Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
GeneralRe: HELP with assignment Pin
Dan Neely12-May-09 6:00
Dan Neely12-May-09 6:00 
GeneralRe: HELP with assignment Pin
PIEBALDconsult12-May-09 7:03
mvePIEBALDconsult12-May-09 7:03 
GeneralRe: HELP with assignment Pin
Dan Neely12-May-09 7:08
Dan Neely12-May-09 7:08 
GeneralRe: HELP with assignment Pin
PIEBALDconsult12-May-09 7:14
mvePIEBALDconsult12-May-09 7:14 
GeneralRe: HELP with assignment Pin
Dan Neely12-May-09 8:27
Dan Neely12-May-09 8:27 
GeneralRe: HELP with assignment Pin
PIEBALDconsult12-May-09 9:49
mvePIEBALDconsult12-May-09 9:49 
GeneralRe: HELP with assignment Pin
Dan Neely12-May-09 10:13
Dan Neely12-May-09 10:13 
GeneralRe: HELP with assignment Pin
PIEBALDconsult12-May-09 11:27
mvePIEBALDconsult12-May-09 11:27 
Please do.

I've found ChangeType to be useful when I don't know the destination type at compile time and even generics won't help; it's rare. One example I have is loading a DataTable from a CSV file. Otherwise, if you know the destination type, just use it.

I ran a little test and found int.Parse to be 3% quicker than Convert.ToInt32 (ToInt32 requires an additional method invocation), which isn't much, but as it supports my position I'll consider it significant. Big Grin | :-D
GeneralRe: HELP with assignment Pin
Dan Neely14-May-09 5:29
Dan Neely14-May-09 5:29 
GeneralRe: HELP with assignment Pin
PIEBALDconsult14-May-09 12:58
mvePIEBALDconsult14-May-09 12:58 
AnswerRe: HELP with assignment Pin
Henry Minute12-May-09 5:29
Henry Minute12-May-09 5:29 
QuestionInsert into Text File from Sql Table Pin
Laji5912-May-09 4:33
Laji5912-May-09 4:33 
AnswerRe: Insert into Text File from Sql Table Pin
EliottA12-May-09 5:10
EliottA12-May-09 5:10 
QuestionHow do I tell my program which version of a COM DLL or OCX to use? Pin
Malleus1212-May-09 4:11
Malleus1212-May-09 4:11 
QuestionPowershell / C# guru advice needed Pin
Whydah12-May-09 4:03
Whydah12-May-09 4:03 
AnswerRe: Powershell / C# guru advice needed Pin
Eddy Vluggen12-May-09 4:52
professionalEddy Vluggen12-May-09 4:52 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Whydah12-May-09 6:42
Whydah12-May-09 6:42 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Dave Kreskowiak12-May-09 6:58
mveDave Kreskowiak12-May-09 6:58 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Whydah12-May-09 21:07
Whydah12-May-09 21:07 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Dave Kreskowiak13-May-09 2:01
mveDave Kreskowiak13-May-09 2:01 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Whydah13-May-09 3:22
Whydah13-May-09 3:22 
QuestionC# Max Interfaces? Pin
Jammer12-May-09 3:55
Jammer12-May-09 3:55 
AnswerRe: C# Max Interfaces? Pin
Pete O'Hanlon12-May-09 4:24
mvePete O'Hanlon12-May-09 4:24 
GeneralRe: C# Max Interfaces? Pin
Jammer12-May-09 9:17
Jammer12-May-09 9:17 
AnswerRe: C# Max Interfaces? Pin
Dave Kreskowiak12-May-09 4:51
mveDave Kreskowiak12-May-09 4:51 

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.