Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
AnswerRe: CodeDom and partial method Pin
jatin.sabarmati23-Nov-08 16:47
jatin.sabarmati23-Nov-08 16:47 
QuestionC# vs VB6.0 Pin
Pedram Behroozi26-Sep-08 6:46
Pedram Behroozi26-Sep-08 6:46 
AnswerRe: C# vs VB6.0 Pin
Fernando A. Gomez F.26-Sep-08 7:03
Fernando A. Gomez F.26-Sep-08 7:03 
AnswerRe: C# vs VB6.0 [modified] Pin
Judah Gabriel Himango26-Sep-08 7:08
sponsorJudah Gabriel Himango26-Sep-08 7:08 
GeneralRe: C# vs VB6.0 Pin
Pedram Behroozi26-Sep-08 7:23
Pedram Behroozi26-Sep-08 7:23 
GeneralRe: C# vs VB6.0 [modified] Pin
Judah Gabriel Himango26-Sep-08 7:40
sponsorJudah Gabriel Himango26-Sep-08 7:40 
GeneralRe: C# vs VB6.0 Pin
Paul Conrad26-Sep-08 8:37
professionalPaul Conrad26-Sep-08 8:37 
AnswerRe: C# vs VB6.0 Pin
Wendelius26-Sep-08 7:39
mentorWendelius26-Sep-08 7:39 
Few issues to point out:
- you are comparing two totally different languages and environments. What is optimal in VB6 may not be optimal in C# and vice versa
- your code is not equal. You have several major differences in your code

    - predefined labels in VB6
    - in C# you access properties which you do not use in VB6
    - you modify control collection in C# and so on

- the output is different in .Net (MSIL) than in VB6 (native EXE)
- you may have not optimized code and you may have DEBUG & TRACE options on in C# etc.

However, in real world situation, in most cases .Net beats VB6 in all areas, since you have more possibilities to achieve the same goal but in a more efficient way.

I'm all the time referring to .Net instead of C#, because C# is just one of the languages you can use in .Net. If you make the same test using VB.NET, you'll have similar results. However C# gives you the opportunity to use more efficient coding than VB.NET so it would be more reasonable choice for the language.

If performance still is an issue with MSIL code, you can always use ngen at target machine.

Mika

The need to optimize rises from a bad design

GeneralRe: C# vs VB6.0 Pin
Pedram Behroozi26-Sep-08 8:09
Pedram Behroozi26-Sep-08 8:09 
GeneralRe: C# vs VB6.0 Pin
Wendelius26-Sep-08 8:17
mentorWendelius26-Sep-08 8:17 
AnswerRe: C# vs VB6.0 Pin
Ennis Ray Lynch, Jr.26-Sep-08 7:59
Ennis Ray Lynch, Jr.26-Sep-08 7:59 
AnswerRe: C# vs VB6.0 Pin
Pete O'Hanlon26-Sep-08 8:17
mvePete O'Hanlon26-Sep-08 8:17 
GeneralRe: C# vs VB6.0 Pin
piyey26-Sep-08 10:29
piyey26-Sep-08 10:29 
AnswerRe: C# vs VB6.0 Pin
Paul Conrad26-Sep-08 8:40
professionalPaul Conrad26-Sep-08 8:40 
GeneralRe: C# vs VB6.0 Pin
Pedram Behroozi26-Sep-08 9:58
Pedram Behroozi26-Sep-08 9:58 
AnswerRe: C# vs VB6.0 Pin
Guffa26-Sep-08 8:52
Guffa26-Sep-08 8:52 
AnswerRe: C# vs VB6.0 Pin
Mohammad Dayyan26-Sep-08 9:23
Mohammad Dayyan26-Sep-08 9:23 
GeneralRe: C# vs VB6.0 Pin
Pete O'Hanlon26-Sep-08 9:57
mvePete O'Hanlon26-Sep-08 9:57 
GeneralRe: C# vs VB6.0 Pin
Adam Maras26-Sep-08 10:27
Adam Maras26-Sep-08 10:27 
GeneralRe: C# vs VB6.0 Pin
piyey26-Sep-08 10:35
piyey26-Sep-08 10:35 
GeneralRe: C# vs VB6.0 Pin
Mohammad Dayyan26-Sep-08 16:06
Mohammad Dayyan26-Sep-08 16:06 
GeneralRe: C# vs VB6.0 Pin
Pete O'Hanlon26-Sep-08 23:54
mvePete O'Hanlon26-Sep-08 23:54 
GeneralRe: C# vs VB6.0 Pin
Judah Gabriel Himango27-Sep-08 8:25
sponsorJudah Gabriel Himango27-Sep-08 8:25 
GeneralRe: C# vs VB6.0 Pin
Mohammad Dayyan27-Sep-08 10:17
Mohammad Dayyan27-Sep-08 10:17 
GeneralRe: C# vs VB6.0 Pin
Judah Gabriel Himango28-Sep-08 10:04
sponsorJudah Gabriel Himango28-Sep-08 10:04 

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.