This free book is a collection of notes and sample codes written by the author while he was learning Flash. Topics include C#, C Sharp, data types, float, expression, literal, loop, .NET, performance
Table of Contents
About This Book
Introduction of C# (C Sharp)
What Is C#?
Installing .NET Framework 2.0 SDK
Installing .NET Framework 1.0 SDK
First Program in C# 1.0
C# Program Structure
Data Type and Variables
Data Literals
Data Literals - Example
Variables and Assignment Statements
Variables and Assignments - Example
Arithmetic Operations
Arithmetic Operations - Example
Logical Expressions and Conditional Statements
Logical Expressions
"if" Statements
"if" Statements - Example
"switch" Statements
"switch" Statements - Example
Arrays and Loop Statements
Creating and Using Arrays
Creating and Using Arrays - Example
"for" Loop Statements
"while" Loop Statements
Data Type Features
The "decimal" Data Type
Simple Types Are "struct" Types
Type System Unification
Jagged Arrays
Floating-Point Data Types
Precision of Floating-Point Data Types
Precision of Floating-Point Data Types - Test
Performance of Floating-Point Data Types
Performance of Floating-Point Data Types - Test
IEEE 754 Standards - "float" and "double"
IEEE 754 Standards - "float" and "double" - Test
Binary Representation of "decimal"
Accuracy of "decimal" Data Type
Passing Parameters to Methods
Types of Method Parameters
Method Parameter Arrays
Execution Environment Class
System.Environment - Execution Environment Class
Getting Operating System Information
Getting CLR (Common Language Runtime) Information
Visual C# 2010 Express Edition
Downloading and Installing Visual C# 2010 Express
Creating a Visual C# 2010 Project
Compiling and Running a Project
Class Features
"const" and "readonly" Variables
Method Overloading
Properties
Operators
C# Compiler and Intermediate Language
Compiling and Running C# Programs
Compilation - Converting Source Code to Bytecode
.NET Intermediate Language Disassembler
CLR Based PE (Portable Executable) Files
Disassembling Intermediate Language Bytecode
Assembling Intermediate Language Source Code
Compiling C# Source Code Files
Multiple Classes in a Single Source File
Compiling Multiple Source Code Files Together
Generating and Using .NET Library Files
Memory Usages of Processes
Using "Process" Class to Show Memory Usages
Private/Virtual Memory and Working Set
Footprints of Private and Shared Memories
Virtual Memory Upper Limit
Memory Report from Windows Task Manager
Memory Report from Performance Console
Multithreading in C#
What Is Multithreading?
System.Threading.Thread Class
Creating and Running Threads
Threads to Run Instance Methods
Performance Impact with Multiple Threads
Multi-Thread Programs on Multi-CPU Systems
Maximum Number of Threads in a Program
System.IO.FileInfo Class
What Is FileInfo?
Public Properties and Methods of FileInfo Class
Creating FileInfo Objects
FileVersionCopyFile.cs - Testing CopyTo() Method
System.Diagnostics.FileVersionInfo Class
What Is FileVersionInfo?
Public Properties of FileVersionInfo Class
Creating FileVersionInfo Objects
ShowFileVersionInfo.cs - Print File Version Information
Displaying Version Information using Windows Explorer
Displaying Version Information using PE Explorer
References
PDF Printing Version
Keywords: C#, C Sharp, Language, .NET