Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 419 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
419
Dung lượng
4,21 MB
Nội dung
[...]... p2p.wrox.com Chapter 1: What is C#? The Name C# Overview History C# and CLR Diversions Into NET Standards Other Implementations Sample C# Code The Benefits of Learning C# Summary Chapter 2: Getting Started with C# Getting Into C# is Cheaper Than You Think! The Cheap End of the Spectrum How to Leverage Free C# Tools One Cheap Utility That Makes Life Easier! Alternative Text Editors and C# Tools Enterprise Tools... Makes Life Easier! Alternative Text Editors and C# Tools Enterprise Tools - Visual Studio and Visual C# Summary ix xxiii xxiii xxiii xxiv xxv xxv xxvi xxvi xxvi xxvii 1 1 1 2 2 2 3 3 3 5 6 7 7 7 10 13 15 15 16 Contents Chapter 3: Overview of C#C#C# Basics Examining the C# Source Code Types Value Types Reference Types Predefined Types Overloading Conversions Array Types 17 17 17 18 19 19 19 19 22 22... bigger C# picture We’re going to spend a few chapters looking at broader topics of C# (such as looking at what C# is and how to get started with C# before taking in an overview of the C# language) These foundation chapters will allow you to orient yourself before delving into the detailed look at the various aspects of the language After giving you a few foundation chapters, we then dive right into C#. .. page xxvii What is C#? So, you want a C# reference? OK, well the best place to begin is by looking at what C# is and where it came from The Name First off, the name According to the ECMA-334 C# Language Specification (http://www ecma-international.org/publications/standards/Ecma-334.htm), the name is combined of a Latin capital letter C (U+0043) followed by the number symbol # (U+0023) C# is pronounced... elements that have made C# such a popular programming language Don’t think that it’s just simple stuff that C# is up to; this is merely the tip of the iceberg C# is a fullfeatured and robust programming language that’s up to any task to which you set it The Benefits of Learning C# So, what are the advantages of taking the C# route? Well, as you have just seen, the main advantage that C# offers is a far... into C# We start off by looking at the structure and concepts of the C# language We then take a close look at C# types, variables, and conversions Building on these chapters, we then progress onto examining the syntax of C# expressions and statements, before moving on to looking at how C# uses namespaces We then move on to look at C# classes, structs, arrays, and enums and then delegates, exceptions,... http://www.gotmono.com/ It’s great to see a flourishing community build up around C# This will give programmers wanting to make use of C# greater choice and flexibility As with all independent implementations, however, you have to expect a certain amount of drift from the standards Sample C# Code So, what does C# code look like? Well, we’ll be looking at C# code a lot later in this book, but to begin with, here’s a simple... programming with C# In this chapter we look at what you really need and a few things that will make your life a little easier ❑ Chapter 3: Overview of C# Here we give you a whirlwind tour of C# and highlight some of the most important features of this powerful and flexible programming language ❑ Chapter 4: C# Language Structure In this chapter we take a look at the structure of the C# language, paying... syntactic grammar, the tokens, and the directives ❑ Chapter 5: C# Concepts In this chapter we take a look at many of the key concepts in C#, such as application startup and termination, members and member access, and overloading ❑ Chapter 6: Types We now begin to look at specific aspects of the C# language, starting with types We look at value types and reference types and boxing and unboxing ❑ Chapter 7: Variables... arrays available in C# ❑ Chapter 15: Interfaces In this chapter we examine interfaces in C# and look at declarations, members, qualified member names, and implementations ❑ Chapter 16: Enums Enums are strongly typed constants, and in this chapter we examine how they are used in C# coding ❑ Chapter 17: Delegates This chapter looks at delegate declarations, instantiations, and invocations in C# ❑ Chapter 18: . Page ii
C# 2005
Programmer’s Reference
01_046414 ffirs.qxp 10/4/06 11:21 AM Page i
01_046414 ffirs.qxp 10/4/06 11:21 AM Page ii
C# 2005
Programmer’s Reference
Adrian. xi
xii
Contents
Chapter 3: Overview of C# 17
C# 17
C# Basics 17
Examining the C# Source Code 18
Types 19
Value Types 19
Reference Types 19
Predefined Types