C # syntax reference code

Source: Internet
Author: User
C # The basic points, difficulties, and doubts in the syntax are basically written. I hope to help you. The specific chapters are as follows: (1) C #. use of namespaces in. Net (keyword namespace) (2) usage of parameter arrays of C #. NET environment functions (Keyword: Params) (3) Output Parameters of functions in C #. Net (keyword out) (4) structure functions in C #. Net (struct with functions) (5) Sealing class in C #. Net (Keyword: sealed) (6) abstract classes in C #. Net (abstract keywords) (7) differences between constructors of struct and classes in C #. net (8) structure types in C #. Net (differences between struct and classes) (9) define class members (methods) in C #. net) (10) define class members (fields) in C #. net) (11) Definition class member (attribute) (keyword get, set) in C #. net) (12) Hide and override in C #. Net (keywords new and override) (13) Hide and override 2 in C #. Net (keyword new and override) (14) interface 1 in C #. net (15) definition of partial classification in C #. Net (Keyword: partial)(16) Events in C #. net (17) C #. Net event 2 (18) Application of C #. Net generic (class with parameter <t>) in stack (19) class inheritance in C #. net (20) Enumeration type in C #. Net (keyword Enum) (21) type conversion in C #. Net (keyword checked and unchecked) (22) type conversion of class instances in C #. net (23) custom exceptions in C #. Net (exception) (24) set in C #. net (25) C #. Net Description Interface query (QI) technology in ArcObjects (26) application of the base keyword in C #. net in the derived class (27) C #. Net describes the relationship between interfaces and classes in ArcObjects. (28) C #. Net describes the relationship between interfaces and classes in ArcObjects 2 Package and download code
The above Code does not need to install vs2005 or 2008. You only need to install. Net framework2.0or 3.5to run it. The compiled application is the csc.exe compiler. The running method is as follows: ①, Usually installed. net, CSC. EXE is generally located in c: \ windows \ Microsoft. net \ framework \ v2.0.50727folder, to enable the csc.exe file for any directory in the Command window, right-click my computer -- properties -- Advanced -- environment variable, double-click path, and add "; C: \ Program Files \ Microsoft Visual Studio 8 \ SDK \ V2.0 \ bin; C: \ WINDOWS \ Microsoft. net \ framework \ v2.0.50727 "(no quotation marks, but must be added with a semicolon ).
②. Click Start-run, Enter cmd, open the command window, and enter CSC-help. If a large number of characters appear, your CSC path is configured successfully.
③ Assume that your folder is stored in drive E: \ and your enum. the path of the CS code is "E: \ C # syntax reference code \ 1 Special Syntax". Click start -- run, Enter cmd, open the command window, and enter E: directory to point to the edisk, enter cd e: \ C # syntax reference code \ 1 Special syntax (the directory here is the directory for storing classes, be sure to remember) to change the directory direction, and then enter CSC enum. CS for compilation. an executable file named “enum.exe is generated under the "E: \ C # syntax reference code \ 1special Syntax" directory. Then, enter the executable file name "Enum" in the Command window ", you can view the running result.

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.