1.7. Understanding the Common Language Specification
As you are aware, different languages express the same programming constructs in unique, language-specific terms. For example, in C# you denote string concatenation using the plus operator (+), while in VB you typically make use of the ampersand (&). Even when two distinct languages express the same programmatic idiom (e.g., a function with no return value), the chances are very good that the syntax will appear quite different on the surface.
// C# method returning nothing. public void MyMethod() { // Some interesting code... } ' VB method returning nothing. Public Sub MyMethod() ' Some interesting code... End Sub
As you have already seen, these minor syntactic variations are inconsequential ...
Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.