The explanation of explicit is as follows:;Clear;Clear. So what does explicit it mean in C ++?
Explicit (displayed)
(1) Explicit can disable "Single-parameter constructor" from being used for automatic type conversion, effectively preventing
I,
Static class -Static
Static classes are some classes that cannot be instantiated. They are used to combine some related members.Math, console. Static categoryStaticKeyword ID. Static class members can only beStaticType.StaticKeywords can only
When the method is implemented in the reuse class, the method fulfills its parameters. For invalid parameters, the method should throw an exception type derived from system. argumentexception.
To build a secure and robust class library, the
We are no stranger to mentioning attributes. It is used just like accessing public data members, but it actually calls the corresponding internally defined method. By using attributes, Data encapsulation is maintained and access is convenient. Next,
ArticleDirectory
C # basic collection 02-xml serialization
C # basic collection 02-xml serialization
1.What is serialization?
Serialize refers to the storage of objects to media (such as files and memory buffers) or binary
I should have learned the event according to the progress, but I always feel that the event should be delegated to the front, so that I can understand it.
A delegate is a class that provides a callback function and is type-safe. The delegate can
First, let's take a look.ProgramSET command: command line InputIldasmThis is an disassembly program. In addition,. Net reflector is also a powerful tool for analyzing assembly, which canCodeDecompiled into C #, C ++, and VB.
Next, we will talk about the trees in the data structure. The most important thing to understand is the binary tree, the balanced binary tree, and the red-black tree. We will discuss these trees today.
Binary sorting tree
Concept: the binary
1. Enum Definition
Enumeration is a frequently used form of "name/value", for example:
PublicEnumFeedbackstatus{New,Processing,Verify,Closed}
After defining the enumeration type, it is much easier for us to use it. We do not need to
Keep quiet read CLR via C # (02)-primitive type, reference type, Value Type 1, primitive type
The data types directly supported by the compiler are called primitive types. Such as int and string. There is a direct ing between the primitive type and
Moore's pattern is a large screen display that shows a large area of the same color of the screen, the color of the ripple striped. It will affect the visual effect, which can be seen on the Windows 98 shutdown screen (the Windows XP shutdown screen
Mutable
(1) mutable means "variable, variable", which is the opposite of const in C ++.
(2) In C ++, mutable is also set to break through the const restrictions. Variables modified by mutable will always be in a mutable state, even in a const
Same as reading CLR via C # (04) in Xiaojing.
When talking about classes in. net, they are born at the same root and cannot be too much. Because CLR requires that all classes inherit from system. object. All objects must provide a set of common
C # technical insider Note 1
1.Il: IntermediateCode.. The Code Compiled by the net compiler becomes Il.
2.JIT:Real-time Compiler
3.CLR:Comm langua runtime when the common language is running.
4.CLS: Common Language operation Specification
5.
Class:
Common class
Abstract class
Sealing class
Derived class
Nested class
Interface:
Institution:
1. Face objects
Main concepts:
Abstraction, encapsulation, inheritance, Polymorphism
1: Class Modifier
If a
C # reflection examples
1. Create a DLL for reflection.
Create a c # class library project, copy the Source Code below, compile and generate the DLL (if the DLL file name is testreflect. DLL) 1 using system; 2 3 namespace webtest 4 { 5/***
Reprinted from http://hi.baidu.com/grounder/blog/item/ad0755ca7121d815bf09e624.html
1. Add data 1. Create a data table
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Create Table
The following table operations are performed to access two dbservers using one transaction. (Example)
Create a project
Using system;Using system. Data;Using system. Data. sqlclient;Using system. configuration;Using system. Web;Using system. Web.
Recognize C # Again, record bit by bit
In C #, The binning and unboxing operations refer to converting the value type to the reference type and the reference type to the value type (unboxing ).
Packing is used to describe converting a value type
Look at othersCode, C # has a strange question mark:
Public datetime? Statusdatetime = NULL;
A question mark also appears in your mind. What does this mean? Search online, summarized as follows:
1. Can be empty type modifier (?) :
The reference
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