This article is a series of system application articles for the "Personal Computer History cleanup software" project.We have already discussed how to clear the historical records of IE browser, obtain Windows recent access file records, clear
1,Variable business
Have you tried the following situations during system development? If you have tried it, consider using the rule engine.
Serial number
Problem
Example
1
Business Rules come from one or more tables
------------------------- Translation By Cryking ---------------------------------------------------- Please indicate the source for reprinting. Thank you! ------------------------
Digression: The book "Covers C #4.0" is about to be translated. Due
Database operation base class
Chat demo: http://www.liaofuwu.comEnvironment
Supported Operating Systems: Mono for Windows and Linux
Supported databases: Mysql, Oracle, and SQL ServerDefault Configuration File Location
The configuration file is
The code below:
Step 1: Define a type to accommodate all additional information that needs to be sent to the Event Notification recipient
internal class NewMailEventArgs : EventArgs{ private readonly String m_from,m_to,m_subject;
I. Event-Based Asynchronous EBA)
EAP provides a simple way to use multi-threaded programming, and provides multi-threaded capabilities without explicitly opening or managing threads. At the same time, a model cancellation function is provided to
21. Restricted type visibilityNot all types require Public. You should give you the least visibility of the type to achieve your goal, internal or private classes can implement public interfaces. Many independent classes should be created internally.
The design pattern can make our code more flexible, easier to expand, and easier to maintain. Various Object-Oriented Programming Languages provide basically the same mechanism, such as classes, inheritance, derivation, and polymorphism. However,
This is because if you rewrite the Equals method without overwriting the GetHashCode method, a potential Bug may occur when you use the Dictionary class. Copy the code static Dictionary personValues = new Dictionary (); protected void Page_Load
In CLR, "Equality" is divided into two types: 1. Equality of values: the two variables contain equal values. 2. Reference equality: the two variables reference the same object in the memory. However, not all types are compared by themselves. For
This suggestion should be known or used by many people. If you do not know it, you will be out. List list = new List (); Person p = new Person (); p. ID = 1; p. name = "Tommy"; list. add (p); Sao Nian, are you still doing object and set
In June, I interviewed unity3d game programs, prepared interview questions, asked me a few questions about game development, asked me how to use English, and so on. I introduced the company's situation and requirements for the unity3d program. Then
. Net reflection mechanism is in the running state. For any class, all attributes and methods of this class can be known. For any object, can call any of its methods and attributes. This dynamically obtained information and the function of
The idea is as follows:1. Use the Hashtable (efficient) set to record the number of times each word appears2. Use ArrayList to sort Keys in Hashtable in alphabetical order.3. sort by insert (stable)Public void StatisticsWords (string path) {if (!
What is Operator overload? Overload is an overload concept in object-oriented systems. It is an incomplete embodiment of object polymorphism. The so-called Operator Overloading means to redefine existing operators and assign them another function to
Nested classes are defined in the class or structure.
class Container{ class Nested { Nested() { } }}
the default access permission for nested classes is private, which can be set to public, protected, private, internal, and
1. Generic set:
List
Dictionary
IQueryabl
2. Why is ArrayList not recommended?
2.1 because ArrayList stores data in an array of objects. If the value type data is stored in ArrayList, packing and unpacking may occur, affecting
In the process of learning C #, some basic knowledge, such as data types, control structures, arrays, and so on, are similar to the previous languages, and can be understood, however, the concept of upward transformation was first encountered.
After
4. In addition to defining a new delegate type for each parameter and return type, you can also use the and Func delegate. the generic delegate actions and Func provided by the. NET Framework provide overloading from no parameter to a maximum of
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.