Reading this book recently is more practical. Take some time to translate the public part of the content. The following part is the preface.
The specific address of the book is:
Http://www.amazon.cn/Metaprogramming-in-NET-Hazzard-Kevin/dp/1617290262/
Attribute is a method of associating additional data to an Attribute (and other constructor), while enumeration is the most commonly used structure in programming, enumeration is essentially a constant value. Compared to using these values directly,
In a previous C # project, a requirement was to extract the content of Word documents by page. Later, this requirement was unavailable, but some methods were found out from the middle. Currently, this program can be basically used to read .doc).docx
1. Background
When learning C #, we know that using reflection can greatly facilitate our programming (dynamic access to information, call type members, instance creation, etc ), however, there are few opportunities to directly use reflection in
= = ==
[EnumDescription( = = ==
Is a self-written class, and the source code will be pasted below.
txt = EnumDescription.GetEnumText( txt == EnumDescription.GetFieldTexts( =EnumDescription.GetFieldTexts(= =
Source code
[AttributeUsage
Lead:
The CPU only recognizes binary code. How does the C # source code become a binary code that can be recognized by the CPU?
The procedure is as follows:
1. C # source code
2. Use the Command Prompt window provided by VS to convert the C #
Although app. config is added in C # and access is convenient, sometimes it is not used to it. So let's do a kind of ini configuration file read and write under the C ++ imitation. Others write about calling the unmanaged kernel32.dll. I have also
6. Virtual and non-virtual functions
Below is a non-virtual function
Plane { TopSpeed() { Jet : Plane { TopSpeed() { Main(= ,plane.TopSpeed());
Because TopSpeed () is a non-virtual function, the above Code will print 300. To solve this
Introduction:
In C #, System. Object is the base class of all class types, structure types, enumeration types, and delegate types. It can be said that it is the basis of type inheritance. System. Object includes a member method used to create a copy
Today I read the example of ajax in head first ajax, which is very good. This book is very good and recommended.
Ajax (Asynchronous Javascript and XML) is Asynchronous Javascript and XML, but Javascript and xml cannot be called Ajax. To put it
1. log4net
A good application system is inseparable from the support of log files, so log File Processing accounts for a large proportion in the development process of the application system. Log4net is a log framework that assists the application
Bored and bored. I used C # To maximize the QQ video window.
The principle is that WinApi is called.
/// /// query the form /// /// /// // [DllImport ("User32.dll ", entryPoint = "FindWindow")] public extern static IntPtr FindWindow (string
It is very convenient to capture pages using HtmlAgilityPack, but garbled characters will appear when the page is gb2312 encoding. I checked it online and said that the default method for obtaining pages is not mature enough. I don't know what it is,
Due to not a lot of recent work, simple IDE has been simply written; many functions are still being improved.
Tools mainly include the SQL designer, Form Designer, and code designer.
Interface principle:
Use the DesignSurface component of MS to
From the communication in the previous chapter, we found that if Tcp is used to send messages continuously, messages will be sent together, which causes some problems for programming, it may cause some problems for our information parsing. This
Requirements:
Main (I =; I numberArr = List <> LockTest (++ index = numberArr. findIndex (t => t = +); +Number pre-occupied by multiple concurrent locks
The concurrency preoccupation interval is one time in milliseconds, and the preoccupation
If you are not clear about bitwise operations, you can read my article, "foundation is the top priority ~ Bitwise calculation and integer variable bitwise calculation (like Enumeration type)
What we want to do today is to verify the difference
I. abstract classes/abstract methods
1. abstract methods are modified with abstract.
2. Abstract METHODS cannot have method bodies (nor can there be large arc ).
Eg:
}
3. abstract methods must be in abstract classes.
4. abstract classes
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