C# & VB.NET Conversion Pocket Reference

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

  1. Contents
  2. C# & VB.NET Conversion Pocket Reference
    1. Introduction
      1. Conventions Used in This Book
    2. Syntax Differences
      1. Case Sensitivity
      2. Line Termination
      4. Namespace Declaration and Usage
      5. Variable Declaration
      6. Variable Initialization
      7. Declaring Function Parameters
      8. Passing Function Parameters
      9. Optional Parameters
      10. Parameter Lists
      11. Method Declaration
      12. Returning Output Parameters
      13. Program Startup
      14. Exiting Programs/Methods/Loops
      15. Member Scope
      16. Static and Shared Methods
      17. Classes Versus Modules
      18. If Statements
      19. Short-Circuiting
      20. Conditional Statement
      21. Properties and Indexers (1/2)
      22. Properties and Indexers (2/2)
      23. Arrays
      24. for Loops
      25. For/Each Loops
      26. Try/Catch Blocks
      27. Attribute Usage
      28. Control Characters
      29. Type Comparison and Conversion
    3. Object-Oriented Features
      1. Inheritance Syntax
      2. Method Overloading
      3. Constructors and Field Initializers
      4. Invoking Other Constructors
      5. Invoking Base Constructors
      6. Initializers
      7. Hiding Base Class Members
      8. Overriding Methods (1/2)
      9. Overriding Methods (2/2)
      10. Requiring/Preventing Inheritance
      11. Declaring and Implementing Interfaces (1/3)
      12. Declaring and Implementing Interfaces (2/3)
      13. Declaring and Implementing Interfaces (3/3)
      14. Delegates and Events (1/2)
      15. Delegates and Events (2/2)
      16. Comparing Classes (1/2)
      17. Comparing Classes (2/2)
      18. String Comparisons
    4. IDE Differences
      1. AssemblyInfo.x
      2. Default/Root Namespace
      3. Startup Object
      4. App.ico
      5. Imports/using
      6. COM References
      7. Compiler Constants
      8. Option Explicit, Option Strict, Option Compare
      9. Errors and Warnings
    5. Unique Language Features
      1. Unsafe Blocks (C#)
      2. using (C#)
      3. Documentation Comments (C#)
      4. Operator Overloading (C#)
      5. Late Binding (VB)

Product information

  • Title: C# & VB.NET Conversion Pocket Reference
  • Author(s): Jose Mojica
  • Release date: April 2002
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9780596003197