Accumulated by bit (Continuous updates)

Source: Internet
Author: User

1. the keyword readonly indicates that this field can only be assigned during the execution of the constructor, or is assigned by the initialization statement.

 

2. A new tuple class is added to. net4.0, representing an ordered N-tuples. You can call the tuple. create static method or use the new keyword to directly create a tuple object. the. NET base class library defines the generic tuple with 1-7 Generic parameters. Purpose: Use the tuple object as the return value of the method. It can easily contain multiple results.

 

3.. Net 4.0 provides a big Integer type biginteger (in system. numerics), which can represent any big integer.

 

4. string is a reference type. However, you can use "=" to compare the content of a string because the = Operator is overloaded inside the string.

The addition operation of the string object is implemented by calling the static Concat method of the string class internally.

 

5. The class constructor is attached to an object, so it is generally not used to initialize static fields (or attributes) of the class ). The initialization of static class members is completed by the class "static constructor.

Class static constructor can only be called once, and its call time is the first time when the class static field is called.

 

6. When disassembly SLProgramWhen the cluster is set, the reflector dialog box may pop up to report that the Assembly is missing. In this case, you can go to "\ Program Files \ microsoft Silverlight \ version number or

"\ Program Files \ Microsoft \ sdks \ Silverlight \ version \ libraries \ Client.

 

7. All predefined events of the. NET Framework visual form control are variables of the "event name + handler" delegate type. Information related to this event is encapsulated in event parameters of the "event name + ARGs" type. This event parameter object is derived from eventargs.

 

8. When comparing whether two floating point numbers are equal, the "=" sign cannot be used directly, but the difference between the two numbers must be checked.

 

9. Use the ildasm provided by Vs to decompile the. Net class library into the Il intermediate language. (In Program Files \ microsoft sdks \ windows \ v7.0a \ bin)

 

10. Using the built-in dotfuscator software services in vs20101 can protect and confuse DLL, so that it cannot be decompiled.CodeIt is not maliciously exploited.

 

11. Therefore, the value types all inherit from a special class valuetype.

 

12. We recommend that you use stringbuilder to replace string to implement cost-effective operations such as string connection.

 

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.