This articleArticleThe IL language is used to explain the different parameters passed at the top of the stack when the static method and the non-static method are called.First, take a lookCode:Class testclass{Public static readonly int I = 10;Static
We all know that the "|" symbol can be used in C # to enumerate flags and perform operations. (In fact, this can also be done without the flags enumeration, because "|" is a binary and operation, and any enumeration can be converted to a number .).
System. Object objects are directly or indirectly inherited classes of all managed types.
For example, all value types are inherited from system. valuetype; while system. valuetype is inherited from system. object; however, system. valuetype
For parameters, use expression. parameter to create the parameterexpression object. Note that the parameter can be valid only when the parameterexpression array is input during Lambda creation.
For local variables, the expression type provides the
1. When "\ n" is used in the count statement, a backslash (\) must be used. If "\ n" is written as "/N", no error message is provided during compilation.ProgramIt will still run, but the output content may be different from expected.2. Pre-compiled
Study the differences between the three regular regexoptions enumerated values for matching rows, corresponding to none, singleline (single row) and Multiline (multi-row) enumerated values.
Conclusion:
None :(.) match any character except \ n. ^
For example, there is a person class that stores the name of a person. (But this class will be replaced by another class person_ver2 in subsequent development ):
// + Using system. runtime. serialization
[Serializable, obsolete ("Please use the
To solve this problem, if the method of executing an interface for a type does not modify virtual, can the subclass of this type still modify the method of executing this interface? The answer is always yes, and the interface can always be rewritten
These should be the basic skills of. Net programmers, but I was a little hesitant when I used them today. I finally understood it after reading the notes ...... Sin
The usage of these three functions
// Type Functions
Class type
Bool
After a simple transformation, the observablecollection can be added to any new Member (note that the existing member is replaced). An event is required for notification, you can also set whether to allow the new element to be added.
The principle
Directory
1. ienumerable and ienumerator are not required
2. Support ienumerator that inherits idisposable
Returned directory1. ienumerable and ienumerator are not required
As we all know, the objects after foreach should inherit ienumerable.
In. in the era of net 4.0 and C #4.0, if it is written asynchronously, it will write a lot of code, and I promise the code will not look good, because the result of a lot of APM asynchronous code execution is either a layer-by-layer nested lambda,
By inheriting the configurationvalidatorbase class, you can customize a configuration system validators. However, this method is used today to identify a problem: before each configurationproperty verifies its actual value, the default value must be
By inheriting the collection type and adding two events itemadded and itemremoved to the collection, you can detect the operations to add and delete items in the container. The event provides data for the element value and index value as
As we all know, the appdomain. docallback method will execute code in the specified application domain. If the input delegate is static, the Delegate will proceed normally. If the input delegate is a member function of the object, the object will be
When WMI queries the win32_process type, the user information (username and domain name) of the created process is not included in the attribute list. After checking msdn, only getowner (or getownersid) is called) method. (Refer to the getowner
In many cases, something needs to be randomly generated, and the result must be slowly used in the. NET Framework's random class. Later, I had to write a more convenient multi-function random type, named myrandom. I will share it today.
All the
I recently read some articles and examples of C # And. Net code. I feel like I am getting started. I am complaining about it. I also want to prepare a bucket for your saliva and use it to steam it.
C ++ 11 years ago, I felt that the language was
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