Book description
Though most programmers use two or more languages, they usually have a mastery of one. Although Microsoft has advertised that the .NET runtime is language agnostic and that C# and Visual Basic .NET are so close that switching between the two is really quite easy, that?s only true up to a point. Some of the differences are obvious, but others are very subtle. C# & VB.NET Conversion Pocket Reference helps you easily make the switch from one language to another. The differences occur in three main areas: syntax, object-oriented principles, and the Visual Studio .NET IDE. Syntax concerns the statements and language elements. Object oriented differences are less obvious, and concern differences in implementation and feature sets between the two languages. IDE differences include things like compiler settings or attributes. There is also a fourth area of difference: language features that are present in one language but have no equivalent in the other. These unique language features are also covered in this book. C# & VB.NET Conversion Pocket Reference is a perfect companion for documents and books that don?t have examples using your mastered language. Author Jose Mojica expects that you know one of the two languages, but does not make an assumption about which one. He presents the information in a language-neutral point of view so that programmers from either background can read a section and feel that it is targeted to them.
Table of contents
- Contents
-
C# & VB.NET Conversion Pocket Reference
- Introduction
-
Syntax Differences
- Case Sensitivity
- Line Termination
- Comments
- Namespace Declaration and Usage
- Variable Declaration
- Variable Initialization
- Declaring Function Parameters
- Passing Function Parameters
- Optional Parameters
- Parameter Lists
- Method Declaration
- Returning Output Parameters
- Program Startup
- Exiting Programs/Methods/Loops
- Member Scope
- Static and Shared Methods
- Classes Versus Modules
- If Statements
- Short-Circuiting
- Conditional Statement
- Properties and Indexers (1/2)
- Properties and Indexers (2/2)
- Arrays
- for Loops
- For/Each Loops
- Try/Catch Blocks
- Attribute Usage
- Control Characters
- Type Comparison and Conversion
-
Object-Oriented Features
- Inheritance Syntax
- Method Overloading
- Constructors and Field Initializers
- Invoking Other Constructors
- Invoking Base Constructors
- Initializers
- Hiding Base Class Members
- Overriding Methods (1/2)
- Overriding Methods (2/2)
- Requiring/Preventing Inheritance
- Declaring and Implementing Interfaces (1/3)
- Declaring and Implementing Interfaces (2/3)
- Declaring and Implementing Interfaces (3/3)
- Delegates and Events (1/2)
- Delegates and Events (2/2)
- Comparing Classes (1/2)
- Comparing Classes (2/2)
- String Comparisons
- IDE Differences
- Unique Language Features
Product information
- Title: C# & VB.NET Conversion Pocket Reference
- Author(s):
- Release date: April 2002
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596003197
You might also like
book
Effective C#: 50 Specific Ways to Improve Your C#, Third Edition
In respected .NET expert Bill Wagner identifies 50 ways to harness the full power of the …
book
Learning Go
Go is rapidly becoming the preferred language for building web services. While there are plenty of …
book
Five Lines of Code
Five Lines of Code is a fresh look at refactoring for developers of all skill levels. …
book
Building Microservices, 2nd Edition
As organizations shift from monolithic applications to smaller, self-contained microservices, distributed systems have become more fine-grained. …