Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
Jokethere is no spoon Pin
Nicholas Butler27-Sep-08 0:00
sitebuilderNicholas Butler27-Sep-08 0:00 
Questionimplementing wildcard match method Pin
AndrusM26-Sep-08 12:15
AndrusM26-Sep-08 12:15 
AnswerRe: implementing wildcard match method Pin
Anthony Mushrow26-Sep-08 12:29
professionalAnthony Mushrow26-Sep-08 12:29 
AnswerRe: implementing wildcard match method Pin
Paul Conrad27-Sep-08 5:05
professionalPaul Conrad27-Sep-08 5:05 
GeneralRe: implementing wildcard match method Pin
AndrusM28-Sep-08 22:44
AndrusM28-Sep-08 22:44 
QuestionSystem.Security.Cryptography for encrypting binary files (not plain text) Pin
Cyrilix26-Sep-08 9:01
Cyrilix26-Sep-08 9:01 
AnswerRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
Ennis Ray Lynch, Jr.26-Sep-08 10:06
Ennis Ray Lynch, Jr.26-Sep-08 10:06 
GeneralRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
Cyrilix26-Sep-08 10:42
Cyrilix26-Sep-08 10:42 
GeneralRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
Cyrilix26-Sep-08 12:44
Cyrilix26-Sep-08 12:44 
GeneralRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
Guffa26-Sep-08 15:46
Guffa26-Sep-08 15:46 
GeneralRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
ajtunbridge26-Sep-08 15:52
ajtunbridge26-Sep-08 15:52 
QuestionCodeDom and partial method Pin
Member 346950026-Sep-08 7:56
Member 346950026-Sep-08 7:56 
AnswerRe: CodeDom and partial method Pin
Ennis Ray Lynch, Jr.26-Sep-08 8:01
Ennis Ray Lynch, Jr.26-Sep-08 8:01 
AnswerRe: CodeDom and partial method Pin
Pete O'Hanlon27-Sep-08 9:26
mvePete O'Hanlon27-Sep-08 9:26 
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 

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.