Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Title
Copyright
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Introduction
Chapter 1: Hello World
Choosing an IDE
Creating a project
Hello World
IntelliSense
Chapter 2: Compile and Run
Visual Studio compilation
Console compilation
Comments
Chapter 3: Variables
Data types
Declaration
Assignment
Integer types
Floating-point types
Char type
Bool type
Variable scope
Chapter 4: Operators
Arithmetic operators
Assignment operators
Combined assignment operators
Increment and decrement operators
Comparison operators
Logical operators
Bitwise operators
Operator precedents
Chapter 5: String
String concatenation
Escape characters
String compare
String members
StringBuilder class
Chapter 6: Arrays
Array declaration
Array allocation
Array assignment
Array access
Rectangular arrays
Jagged arrays
Chapter 7: Conditionals
If statement
Switch statement
Goto statement
Ternary operator
Chapter 8: Loops
While loop
Do-while loop
For loop
Foreach loop
Break and continue
Chapter 9: Methods
Defining methods
Calling methods
Method parameters
Params keyword
Method overloading
Optional parameters
Named arguments
Return statement
Value and reference types
Pass by value
Pass by reference
Ref keyword
Out keyword
Chapter 10: Class
Object creation
Accessing object members
Constructor
This keyword
Constructor overloading
Constructor chaining
Initial field values
Default constructor
Object initializers
Partial class
Garbage collector
Destructor
Null keyword
Nullable types
Null-coalescing operator
Default values
Chapter 11: Inheritance
Object class
Downcast and upcast
Is keyword
As keyword
Boxing
Unboxing
Chapter 12: Redefining Members
Hiding members
Overriding members
Hiding and overriding
Sealed keyword
Base keyword
Chapter 13: Access Levels
Private access
Protected access
Internal access
Protected internal access
Public access
Top-level access levels
Inner classes
Access level guideline
Chapter 14: Static
Accessing static members
Static methods
Static fields
Static classes
Static constructor
Extension methods
Chapter 15: Properties
Auto-implemented properties
Property advantages
Read-only and write-only properties
Property access levels
Chapter 16: Indexers
Indexer parameters
Indexer overloading
Chapter 17: Interface
Interface signatures
Interface example
Functionality interface
Class interface
Chapter 18: Abstract
Abstract members
Abstract example
Abstract classes and interfaces
Chapter 19: Namespaces
Nested namespaces
Namespace access
Using directive
Chapter 20: Enum
Enum example
Enum constant values
Enum constant type
Enum access levels and scope
Enum methods
Chapter 21: Exception Handling
Try-catch statement
Catch block
Finally block
Using statement
Throwing exceptions
Chapter 22: Operator Overloading
Operator overloading example
Binary operator overloading
Unary operator overloading
Return types and parameters
Overloadable operators
True and false operator overloading
Chapter 23: Custom Conversions
Implicit conversion methods
Explicit conversion methods
Chapter 24: Constants
Local constants
Constant fields
Readonly keyword
Constant guideline
Chapter 25: Preprocessor
Preprocessor directive syntax
Conditional compilation - #if and #endif
Defining symbols
Undefining symbols
Conditional compilation - #elif and #else
Diagnostic directives
Line directive
Region directive
Chapter 26: Delegates
Anonymous methods
Lambda expressions
Multicast delegates
Delegate signature
Delegates as parameters
Chapter 27: Events
Publisher
Event keyword
Event caller
Raising events
Subscriber
Event handler
Subscribing to events
Chapter 28: Generics
Generic methods
Calling generic methods
Generic type parameters
Default value
Generic classes
Generic class inheritance
Generic interfaces
Generic delegates
Generic events
Generics and Object
Constraints
Multiple constraints
Why to use constraints
Chapter 29: Struct
Struct variable
Struct constructors
Struct field initializers
Struct inheritance
Struct guideline
Chapter 30: Asynchronous methods
Async and await
Async return types
Custom async methods
Index
← Prev
Back
Next →
← Prev
Back
Next →