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
C# 6.0 Pocket Reference
When you need answers for programming with C# 6.0, this practical and tightly focused book tells …
book
C# 3.0 Pocket Reference, 2nd Edition
This book is for busy programmers who want a succinct and yet readable guide to C# …
book
C# 2008 Programmer's Reference
Have access to all aspects of the C# programming language at hand with the C# 2008 …
book
C# 5.0 Pocket Reference
When you need answers for programming with C# 5.0, this practical and tightly focused book tells …