C # programming ideology

Source: Internet
Author: User

The C # development language is the latest application development language included in the Visual Studio. NET Framework. At present, with the extensive development and application requirements of network applications, C # has become the most popular language for development based on Computing and communication. This book introduces the C # development language syntax in detail based on the features of Web development, and provides a wide range of routines for these syntaxes to give full play to the development advantages of C.

Chapter C # Introduction
1.1 Start)
1.2 type (Types)
1.2.1 Predefined type)
1.2.2 Conversion (Conversion)
1.2.3 Array type (Array)
1.2.4 Type System Unification)
1.3 Variables And Parameters)
1.4 Automatic Memory Management)
1.5 Expressions (Expressions)
1.6 Statement (Statements)
Class)
1.7.1 constant (Constants)
1.7.2 domain (Fields)
1.7.3 method (Methods)
1.7.4 Properties)
1.7.5 Event)
1.7.6 operator (Operators)
1.7.7 Index)
1.7.8 Instance Constructors)
1.7.9 Destructors)
1.7.10 Static Constructors)
1.7.11 Inheritance (Inheritance)
1.8 structure (Structs)
1.9 interface (Interfaces)
1.10 delegate (Delegates)
1.11 enumeration (Enums)
1.12 Namespaces And Assemblies)
Version 1.13 (Versioning)
1.14 Attributes (Attributes)
Chapter 2 lexical structure
2.1 Phases of Translation)
2.2 Grammar Notation)
2.3 Lexical Analysis)
2.3.1 Input)
2.3.2 character Input (Input Characters)
2.3.3 Line terminal functions)
2.3.4 Comments)
2.3.5 Space (White Space)
2.4 identifier (Tokens)
2.4.1 single-code Character Escape sequence (Unicode Character Escape Sequences)
2.4.2 Identifiers)
2.4.3 Keywords)
2.4.4 letters (Literals)
2.4.5 Operators And punctuation marks (Operators And Punctuators)
2.5 Pre-processing command (Pre-processing Directive)
2.5.1 Pre-processing identifier (Pre-processing Identifiers)
2.5.2 Preprocessing expression (Preprocessing expressions)
2.5.3 Pre-processing Statement (Pre-processing Declarations)
2.5.4 # if, # elif, # else, # endif
2.5.5 # error and # waring
2.5.6 # region and # endregion
2.5.7 # lime
Chapter 1 Basic Concepts
3.1 Program start (Program Startup)
3.2 program Termination)
3.3 Statement (Declarations)
3.4 elements (Members)
3.4.1 namespace elements (Nanespace Members)
3.4.2 structure member (Struct Members)
3.4.3 Enumeration Members)
3.4.4 Class Member)
3.4.5 Interface Members)
3.4.6 Array items (Array Members)
3.4.7 Delegate member (Delegate Members)
3.5 Member Access)
3.5.1 Declared Accessibility (Declared Accessibility)
3.5.2 accessible domain (Accessibility Domains)
3.5.3 Protected Access)
3.5.4 access Constraints (Accessibility Constraints)
3.6 Signatures And Overloading)
Range of 3.7 (Scopes)
3.7.1 Name range (Name Scopes)
3.7.2 Name Hiding)
3.8 Namespace And Type Names)
Chapter 1 Type
Value Types)
4.1.1 Default Constructors)
4.1.2 structure type (Struct Types)
4.1.3 Simple type (Simple Types)
4.1.4 integer Types)
4.1.5 Floating Point type (Floating Point Types)
4.1.6 Decimal Type)
4.1.7 boolean Type (The Bool Type)
4.1.8 Enumeration Types)
4.2 Reference Types)
4.2.1 Class type (Class Types)
4.2.2 Object Type)
4.2.3 string Type (The string Type)
4.2.4 Interface Types)
4.2.5 Array Type)
4.2.6 Delegate Type)
4.3 Boxing and Unboxing)
4.3.1 Boxing Conversions)
4.3.2 Unboxing Conversions)
Chapter 2 variables
5.1 Variable Categories)
5.1.1 Static Variables)
5.1.2 Instance Variables)
5.1.3 Array member (Array Elements)
5.1.4 Value Parameter)
5.1.5 reference Parameters (Referendce Parameters)
5.1.6 Output Parameters)
5.1.7 Local Variables)
5.2 Default value (Default Values)
5.3 Definite Assignment)
5.3.1 Initial Value variable (Initially Assigned Variables)
5.3.2 initial end value variable (Initially Unassigned Variables)
5.4 Variable reference (Variable References)
Chapter 2 Conversion
6.1 Implicit conversion (Implicit Conversions)
6.1.1 consistent Conversion (Identit Conversion)
6.1.2 Implicit Numeric conversion (Implicit Numeric Conversions)
6.1.3 implicit Enumeration conversion (Impliclt Enumeration Conversiom)
6.1.4 Implicit Reference conversion (Implicit Reference Converions)
6.1.5 foil closure conversion (Boxing Conversions)
6.1.6 Implicit Constant Expression conversion (Implicit Constant Expression Conversions)
6.1.7 User-defined Implicit conversion (User-defined Implicit Conversions)
6.2 Explicit Conversions)
6.2.1 Explicit Numeric conversion (Explicit Numeric Conversions)
6.2.2 Explicit enumeration conversion (Explicit Enum Conversions)
6.2.3 Explicit Reference conversion (Explicit Reference Conversions)
6.2.4 Unboxing Convenions)
6.2.5 User-Defined Explicit Conversions)
6.3 Standard Conversions)
6.3.1 Standard Implicit Conversions)
6.3.2 Standard Explicit Conversions)
6.4 User-Defined conversion (User-Defined Conversions)
6.4.1 User-Defined Conversions allowed (Permitted User-Defined Conversions)
6.4.2 User-Defined conversion (Evalustion of User-Defined Conversions)
6.4.3 User-Defined Implicit conversion (User-Defined Implicit Conveersions)
6.4.4 User-Defined Explicit Conversions)
Chapter 1 expressions
7.1 Expression classification)
7.1.1 classification (Classifications)
7.1.2 value of expression (Values of Expressions)
7.2 operator (Operators)
7.2.1 Operator Precedence And Associativity)
7.2.2 Operator Overloading)
7.2.3 Unary Operator Overload Resolution)
7.2.4 Binary Operator Overload Resolaction)
7.2.5 custom Operators for Candidate users (Candidate User-Defined Operators)
7.2.6 Numeric Promotions)
7.3 Member Lookup)
7.4 Function Members)
7.4.1 list of independent variables (Argument Lists)
7.4.2 Overload Resolution)
7.4.3 Function Member reference (Function Member Invocation)
7.5 original expression (Primary Expressions)
7.5.1 letters (Literals)
7.5.2 simplified name (Smple Manes)
7.5.3 arc expression (Parenthesized Expressions)
7.5.4 Member Access)
7.5.5 reference expression (Invocation Expressions)
7.5.6 Elemet Access)
7.5.7 This Access)
7.5.8 Base Access)
7.5.9 suffix Increment And Decrement Operators (Postfix Increment And Decrement Operators)
7.5.10 New Operator (New Operator)
7.5.11 Typeof Operator (Type of Operator)
7.5.12 Checked And Unchecked Operators)
7.6 Unary ExPression)
7.6.1 Unary Plus Operator)
7.6.2 Unary Minus OPerator)
7.6.3 Logical non-Operator (Logical Negation Operator)
7.6.4 Bitwise Complement Operator)
7.6.5 Prefix Increment And Decrement Operators (Prefix Increment And Decrement Operators)
7.6.6 CAST expression (Cast Expressions)
7.7 Arithmetic Operators (Arithmetic Operators)
7.7.1 Multiplication Operator)
7.7.2 Division operator (Division operator)
7.7.3 evaluate the remainder Operator (Rermainder Operator)
7.7.4 Addition Operator (Addition Operator)
7.7.5 Subtraction Operator (Subtraction Operator)
7.8 Shift Operators)
7.9 Relational Operators)
7.9.1 Integer Comparison operator (Integer Comparison Operators)
7.9.2 Floating Point Comparison operator (Floating-Point Comparison Operators)
7.9.3 Decimal Comparison operator (Decimal Comparison Operators)
7.9.4 Boolean Equality ity Operatprs)
7.9.5 Enumeration Comparison operator (Enumeration Comparison Operators)
7.9.6 Refgence type Equality ity Operators)
7.9.7 String Equality operator (String Equality ity Operators)
7.9.8 Delegate Equality operator (Delegate Equality ity Operators)
7.9.9 is Operator (The is Operator)
7.9.10 as Operator (The as Operator)
7.10 Logical Operators)
7.10.1 integer Logical Operators (Inter Logical Operators)
7.10.2 Enumeration Logical Operators (Enumeration Logical Operators)
7.10.3 Boolean Logical Operators (Boolean Logical Operators)
7.11 additional Conditional Logical Operators (Conditional Logical Operators)
7.11.1 Boolean Conditional Logical operator (Boolean Conditional Logical Operators)
7.11.2 custom Conditional Logical Operators (User-Defined Conditional Logical Operators)
7.12 Conditinal Operator)
7.13 value Assignment operator (Assignment Operators)
7.13.1 Simple Assignment)
7.13.2 Compound Assignment)
7.14 Expression)
7.15 Constant expression (Constant Expressions)
7.16 Boolean expression (Boolean Expressions)
Chapter 1 Statements
8.1 End point And Reachability)
8.2 Blocks (Blocks)
8.3 The Empty Statement)
8.4 label statement (Labeled Statements)
8.5 Declaration Statements)
8.5.1 Local Variable Declaration (Local Variable Declarations)
8.5.2 Local Constant Declaration (Local Constant Declarations)
8.6 Expression Statements (Expression Statements)
8.7 Selection Statements)
8.7.1 if Statement (The If Statement)
8.7.2 swith Statement (The Switch Statement)
8.8 iteration Statement (Iteration Statements)
8.8.1 While Statement (The While Statement)
8.8.2 do Statement (The Do Statement)
8.8.3 for Statement (The For Statement)
8.8.4 for each Statement (The For Each Statement)
8.9 jump Statement (Jump Statemeots)
8.9.1 The break Statement)
8.9.2 continue Statement (The Continue Statement)
8.9.3 goto statement (The Goto statement)
8.9.4 retum Statement (The Retum Statement)
8.9.5 throw Statement (The Throw Statement)
8.10 try Statement (The Try Statement)
8.11 hecked And unchecked Statements (The Checked And Unchecked Statements)
8.12 The lock Statement)
8.13 using Statement (The Using Statement)
Chapter 2 namespace
9.1 Compilation unit (Compilation Units)
9.2 Namespace Declarations)
9.3 Using Directives)
9.3.1 use of Alias commands (Using Alias Directives)
9.3.2 namespace command usage (Using Nanespace Directives)
9.4 Namespace Members)
9.5 Type Declarations)
Chapter 1 category
Class Declaarations)
10.1.1 Class Modifiers)
10.1.2 Class Base Specification)
10.1.3 Class Body)
Class Member)
10.2.1 Inheritance (Inheritance)
10.2.2 new modify function (The New Modifier)
10.2.3 Access Modifiers)
10.2.4 constituent type (Constituent Types)
10.2.5 Static And Instance Members)
10.3 constants (Cogstants)
10.4 domain (Fields)
10.4.1 Static And Instance Domains)
10.4.2 readonly domain (Readonly Fields)
10.4.3 Field Initialization)
10.4.4 Variable initialization (Variable Initilizers)
10.5 method (Methods)
10.5.1 Method Parmeter)
10.5.2 Static And Instance Methods (Static And Instance Methods)
10.5.3 Virtual Methods)
10.5.4 overload method (Override Methods)
10.5.5 encapsulation method (Sealed Methods)
10.5.6 Abstract method (Abstract Methods)
10.5.7 External method (External Methods)
10.5.8 Method Body)
10.5.9 Method Overloading)
10.6 Properties)
10.6.1 Static Properties)
10.6.2 Accessors)
10.6.3 Virtual, encapsulated, overloaded, And abstract access functions)
10.7 Events)
10.7.1 Event Accessors)
10.7.2 Static Events (Static Events)
10.8 index (Indexers)
10.9 operator (Operators)
10.9.1 Unary Operators)
10.9.2 Binary Operators (Binary Operators)
10.9.3 Conversion operator (Conversion Operators)
10.10 Instance Constructors)
10.10.1 Constructor Initializers)
10.10.2 instance Variable initialization function (Inatace Variable Initializers)
10.10.3 Constructor Execution)
10.10.4 Default Constructors)
10.10.5 Private Constructors)
Optional Const)
Static Constructors)
10.12 Destructors)
Chapter 2 Structure
11.1 structure Declaration (Struct Declarations)
11.1.1 structure modification function (Struct Modifiers)
11.1.2 structure Interface (Struct Interfaces)
11.1.3 structure subject (Struct Body)
11.2 structure member (Struct Members)
11.3 Class And Struct Differences)
11.3.1 Value Semantics)
11.3.2 Inheritance (Inheritance)
11.3.3 value Assignment (Assignment)
11.3.4 Default value (Default Values)
11.3.5 Boxing And Unboxing)
11.3.6 this Meaning (Meaning of This)
11.3.7 Field Initializers)
11.3.8 Constructors)
11.3.9 destructor)
11.4 structure instance (Struct Examples)
11.4.1 Database Integer Type)
11.4.2 Database Boolean Type)
Chapter 2 array
12.1 Array type (Array Types)
12.2 Array Creation)
12.3 Array Element Access)
12.4 Array Members)
12.5 Array variance (Array Covariance)
12.6 Array initialization function (Array Initializers)
Chapter 4 Interfaces
13.1 Interface declarations)
13.1.1 Interface Modifiers)
13.1.2 basic interface (Base Interfaces)
13.1.3 Interface Body)
13.2 Interface Members)
13.2.1 Interface Methods)
13.2.3 Interface Events)
13.2.4 Interface Indexers)
13.2.5 Interface Member Access)
13.3 full-Permission interface Member name (Fully Qualified Intenace Member Names)
13.4 Interface Implementations)
13.4.1 Explicit Interface Member execution (Explicit Interface Member Implementations)
13.4.2 Interface Mapping)
13.4.3 Interface execution Inheritance (Interface Implementation Inheritance)
13.4.4 Interface Re-execution (Interface Re-Implementation)
13.4.5 Abstract Classes And Interfaces (Abstract Classes And Interfaces)
Chapter 1 Enumeration
14.1 Enum Declarations)
14.2 Enum Modifiers)
14.3 Enum Members)
14.4 Enum Values And Operations (Enum Values And Operations)
Chapter 2 Delegation
15.1 Delegate Statement (Delegate Declarations)
15.2 delegated instance (Delegate Instantition)
More than 15.3 cast Delegates)
15.4 Delegate reference (Delegate Invocation)
Chapter 2 exceptions
16.1 cause of exception (Causes of Exceptions)
16.2 System. Exception Class (The System. Exception Class)
16.3 How to handle Exceptions)
16.4 Common Exception Classes)
Chapter 2 attributes
Attribute Classes)
17.1.1 AttributeUsage Attribute (The Attributeusage Attribute)
17.1.2 location And naming Parameters (Positional And Named Parameters)
17.1.3 Attribute Parameter type (Attribute Parameter Types)
17.2 Attribute Specification)
17.3 Attribute Instances)
17.3.1 property Compilation (Compilation of Attribute)
17.3.2 restoration of An Attribute Instance during runtime (Run-time Retrieval of An Attribute Instance)
17.4 Reserved Attribute)
17.4.1 AttributeUsage Attribute (The AttributeUsage Attribute)
17.4.2 Conditional Attribute (The Conditional Attribute)
17.4.3 Obsolete Attribute (The Obsolete Attribute)
Appendix A Insecure code
Appendix B interoperability
References

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.