Skip to Content
C# & VB.NET Conversion Pocket Reference
book

C# & VB.NET Conversion Pocket Reference

by Jose Mojica
April 2002
Intermediate to advanced
144 pages
5h 35m
English
O'Reilly Media, Inc.
Content preview from C# & VB.NET Conversion Pocket Reference
iii
Contents
Introduction 1
Conventions Used in This Book 2
Syntax Differences 3
Case Sensitivity 3
Line Termination 5
Comments 6
Namespace Declaration and Usage 7
Variable Declaration 10
Variable Initialization 12
Declaring Function Parameters 13
Passing Function Parameters 16
Optional Parameters 18
Parameter Lists 18
Method Declaration 19
Returning Output Parameters 20
Program Startup 22
Exiting Programs/Methods/Loops 24
Member Scope 27
Static and Shared Methods 28
Classes Versus Modules 30
If Statements 32
Short-Circuiting 35
Conditional Statement 37
Properties and Indexers 38
Arrays 44
for Loops 49
iv
|
Contents
For/Each Loops 52
Try/Catch Blocks 54
Attribute Usage 56
Control Characters 58
Type Comparison and Conversion 60
Object-Oriented Features 65
Inheritance Syntax 65
Method Overloading 66
Constructors and Field Initializers 69
Invoking Other Constructors 70
Invoking Base Constructors 72
Initializers 74
Hiding Base Class Members 76
Overriding Methods 81
Requiring/Preventing Inheritance 87
Declaring and Implementing Interfaces 90
Delegates and Events 104
Comparing Classes 110
String Comparisons 117
IDE Differences 119
AssemblyInfo.x 119
Default/Root Namespace 122
Startup Object 124
App.ico 125
Imports/using 125
COM References 126
Compiler Constants 127
Option Explicit, Option ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Visual Basic 2015 Unleashed

Visual Basic 2015 Unleashed

Alessandro Del Sole
VB.NET Language Pocket Reference

VB.NET Language Pocket Reference

Steven Roman PhD, Ron Petrusha, Paul Lomax

Publisher Resources

ISBN: 0596003196Catalog PageErrata