Click here to Skip to main content
15,909,939 members
Home / Discussions / C#
   

C#

 
GeneralRe: Predefined Macros Pin
Paul Selormey19-Jul-05 4:14
Paul Selormey19-Jul-05 4:14 
GeneralRe: Predefined Macros Pin
Christian Graus19-Jul-05 10:32
protectorChristian Graus19-Jul-05 10:32 
GeneralOptional Parameter in C# Pin
arechno18-Jul-05 18:55
arechno18-Jul-05 18:55 
GeneralRe: Optional Parameter in C# Pin
Christian Graus18-Jul-05 19:02
protectorChristian Graus18-Jul-05 19:02 
GeneralRe: Optional Parameter in C# Pin
arechno18-Jul-05 19:27
arechno18-Jul-05 19:27 
GeneralRe: Optional Parameter in C# Pin
Christian Graus18-Jul-05 19:29
protectorChristian Graus18-Jul-05 19:29 
GeneralRe: Optional Parameter in C# Pin
DavidNohejl19-Jul-05 3:08
DavidNohejl19-Jul-05 3:08 
GeneralRe: Optional Parameter in C# Pin
Dave Doknjas19-Jul-05 16:45
Dave Doknjas19-Jul-05 16:45 
C# vs VB is all a matter of style.

If you look closely at the features of both languages, you'll see that VB offers about as many features that C# doesn't have that C# offers that VB doesn't have.

C#:
- allows unsafe code (I've yet to meet anyone who does this in C# though)
- has the 'as' operator (but VB has it in 2005 - 'TryCast')
- allows assignments within expressions (e.g., if ((x = y.Value) == 2))
- operator overloading

VB:
- has optional parameters
- allows types within interfaces (although I've never wished I had this in C#)
- has a very flexible Select construct (much, much more flexible than 'switch')
- has the "When" filter for catch block headers (ok - I'm really stretching now...)

And this one is a doubtful benefit of VB: it gives you half a dozen ways to do a lot of things - some regard it as a benefit, while others hate it since it makes it harder to produce standard code in teams.



David Anton
Tangible Software Solutions
www.tangiblesoftwaresolutions.com
Home of:
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter
GeneralRe: Optional Parameter in C# Pin
Christian Graus19-Jul-05 16:52
protectorChristian Graus19-Jul-05 16:52 
GeneralMy XmlFile looses its tree hierarchy after saving it Pin
rudy.net18-Jul-05 15:01
rudy.net18-Jul-05 15:01 
GeneralGetLParam function Pin
manhuber18-Jul-05 14:56
manhuber18-Jul-05 14:56 
GeneralRe: GetLParam function Pin
Luis Alonso Ramos18-Jul-05 15:30
Luis Alonso Ramos18-Jul-05 15:30 
GeneralASP('Cache-Control') Pin
felopater18-Jul-05 14:04
felopater18-Jul-05 14:04 
GeneralStatic Objects - Stupid Question Pin
Tristan Rhodes18-Jul-05 13:53
Tristan Rhodes18-Jul-05 13:53 
GeneralRe: Static Objects - Stupid Question Pin
leppie19-Jul-05 0:27
leppie19-Jul-05 0:27 
GeneralListView and VScrollBar. Pin
93Current18-Jul-05 13:36
93Current18-Jul-05 13:36 
GeneralRe: ListView and VScrollBar. Pin
Christian Graus18-Jul-05 13:45
protectorChristian Graus18-Jul-05 13:45 
GeneralRe: ListView and VScrollBar. Pin
Jano Petras18-Jul-05 14:36
Jano Petras18-Jul-05 14:36 
GeneralSolution is very simple! Pin
93Current19-Jul-05 9:14
93Current19-Jul-05 9:14 
QuestionThis program will self destruct in 10 sec....??? Pin
WetRivrRat18-Jul-05 12:22
WetRivrRat18-Jul-05 12:22 
AnswerRe: This program will self destruct in 10 sec....??? Pin
Christian Graus18-Jul-05 13:07
protectorChristian Graus18-Jul-05 13:07 
AnswerRe: This program will self destruct in 10 sec....??? Pin
Luis Alonso Ramos18-Jul-05 15:34
Luis Alonso Ramos18-Jul-05 15:34 
GeneralSNMP Pin
palwhatsup18-Jul-05 12:13
palwhatsup18-Jul-05 12:13 
GeneralRe: SNMP Pin
leppie19-Jul-05 0:32
leppie19-Jul-05 0:32 
QuestiondeSerialization is slow why? Pin
erdsah8818-Jul-05 11:48
erdsah8818-Jul-05 11:48 

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.