Click here to Skip to main content
15,881,631 members
Home / Discussions / C#
   

C#

 
AnswerRe: Combox Bold certain items Pin
Dave Kreskowiak19-Jan-06 13:43
mveDave Kreskowiak19-Jan-06 13:43 
GeneralRe: Combox Bold certain items Pin
Vadim Tabakman19-Jan-06 16:58
Vadim Tabakman19-Jan-06 16:58 
GeneralRe: Combox Bold certain items Pin
Dan Neely20-Jan-06 2:25
Dan Neely20-Jan-06 2:25 
GeneralRe: Combox Bold certain items Pin
Dave Kreskowiak20-Jan-06 4:17
mveDave Kreskowiak20-Jan-06 4:17 
Questiondiff between int and Convrt.Int32 Pin
dvsr19-Jan-06 12:08
dvsr19-Jan-06 12:08 
AnswerRe: diff between int and Convrt.Int32 Pin
Guffa19-Jan-06 12:31
Guffa19-Jan-06 12:31 
GeneralRe: diff between int and Convrt.Int32 Pin
dvsr19-Jan-06 12:35
dvsr19-Jan-06 12:35 
AnswerRe: diff between int and Convrt.Int32 Pin
Guffa19-Jan-06 12:52
Guffa19-Jan-06 12:52 
That depends on what you are converting. For an example, the implementation of Convert.ToInt32(Int16) looks like this:

public static int ToInt32(Int16 value) {<br />
      return (int)value;<br />
}


So, the only difference from using the cast directly is the method call. And if the compiler is clever enough, it will never even do the method call, but simply use the code from the method inline, so there will be no difference at all in the final executable code.

However, one thing is certain. The call to Convert.Int32 is never faster than a direct cast.

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

QuestionValueMember of comboBox problem Pin
moonangel_bio19-Jan-06 11:50
moonangel_bio19-Jan-06 11:50 
AnswerRe: ValueMember of comboBox problem Pin
Christian Graus19-Jan-06 15:40
protectorChristian Graus19-Jan-06 15:40 
GeneralRe: ValueMember of comboBox problem Pin
moonangel_bio20-Jan-06 4:51
moonangel_bio20-Jan-06 4:51 
GeneralRe: ValueMember of comboBox problem Pin
Christian Graus22-Jan-06 11:09
protectorChristian Graus22-Jan-06 11:09 
QuestionCompiling and using C Code in .Net C# Pin
gulmisal19-Jan-06 11:17
gulmisal19-Jan-06 11:17 
AnswerRe: Compiling and using C Code in .Net C# Pin
Nick Parker19-Jan-06 11:45
protectorNick Parker19-Jan-06 11:45 
AnswerRe: Compiling and using C Code in .Net C# Pin
Christian Graus19-Jan-06 12:05
protectorChristian Graus19-Jan-06 12:05 
Question[Message Deleted] Pin
DarrenFerne19-Jan-06 9:36
DarrenFerne19-Jan-06 9:36 
AnswerRe: How do I get a control to draw outside its client area Pin
Guffa19-Jan-06 13:13
Guffa19-Jan-06 13:13 
QuestionRTF header. Pin
Agyeman19-Jan-06 8:51
Agyeman19-Jan-06 8:51 
QuestionRCW message, Thread pool Pin
2hdass19-Jan-06 8:36
2hdass19-Jan-06 8:36 
AnswerRe: RCW message, Thread pool Pin
Dave Kreskowiak19-Jan-06 13:33
mveDave Kreskowiak19-Jan-06 13:33 
GeneralRe: RCW message, Thread pool Pin
Monika Dayal6-Feb-20 0:28
Monika Dayal6-Feb-20 0:28 
GeneralRe: RCW message, Thread pool Pin
Dave Kreskowiak6-Feb-20 2:53
mveDave Kreskowiak6-Feb-20 2:53 
QuestionAccessing .AVI As Embedded Resource Pin
rich_wenger19-Jan-06 7:45
rich_wenger19-Jan-06 7:45 
Questionto trigger some actions after form load. Pin
Manu_8119-Jan-06 7:37
Manu_8119-Jan-06 7:37 
AnswerRe: to trigger some actions after form load. Pin
mav.northwind19-Jan-06 8:05
mav.northwind19-Jan-06 8:05 

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.