C # Foundation (i)

Source: Internet
Author: User

1, Msil:microsoft Intermediate Language Microsoft intermediate language

2. Storage location for. NET Framework:%windir%\microsoft.net

Starting with the. NET Framework 4, the default location for the global assembly cache is%windir%\microsoft.net\assembly.
In earlier versions of the. NET Framework, the default location is%windir%\assembly.

3. Basic type:

(1) Value type:

The value type must be initialized, if it is empty: int? Intvalue = null;

(2) Reference type:

A reference type can be assigned an empty string: string str = ""; equivalent to: string str = string. Empty;

4. Type conversion:. Parse,convert. ToInt32

5. GUID: Globally unique identifier (globally unique Identifier)

Guid g = Guid.Empty

6. Enum Type: enum

(1) The enumeration value is a constant, not a variable.  You cannot assign a value to an assignment statement in a program. (2) The enumeration element itself is defined by the system as a numeric value for the ordinal, from 0 to the beginning of the order defined as 0,1,2 ....  As in weekday, the Sun value is 0,mon value of 1,sat value is 6. (3) The enumeration value can only be assigned to the enumeration variable, the value of the element can not be directly assigned to the enumeration variable: If you must assign a value to an enumeration variable, you must cast with a coercion type.

  

      

C # Foundation (i)

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.