One of the drawbacks of the. Net 1.1 release is that it does not provide support for generics. By using generics, we can greatly improve the reuse of code, but also get strong type of support, avoid implicit boxing, unpacking, to some extent,
for. NET, if you want to handle it separately, add a specified class for this node, and if we define many custom nodes in an application, then by doing so, there will be a lot more processing classes, in order to avoid too many classes, We specify a
Generics allow you to defer writing a specification of the data type of a programming element in a class or method until you actually use it in your program. In other words, when declaring a class or method, because you do not know what type of
Delegates and events are used in C # a lot, especially when it comes to form programming, and many operations are handled and passed through delegates and events. Here we explain in detail the usage and reason of the delegate and the event, so that
At the end of the last time I left a few questions, because the power is not resolved, this one we continue the content of the previous article. Click here to go back to the previous article
Question 1:
Arrays have multidimensional, indexers can
Objective
Recently watching C # concurrent programming • Classic example "This book, this is not a theoretical book, but this is a main talk about how to better use the current c#.net for us to provide these APIs of a book, most of the book is some
In the development of C + + programs, generally in the throughput, concurrency, real-time high requirements. When designing a C + + program, the following points can be summed up to improve efficiency:
Concurrent
Asynchronous
Cache
1. Common Properties:
(1) Checked property: used to set or return the radio button is selected, check the value is true, no check value is false.
(2) AutoCheck property: If the AutoCheck property is set to True (the default), all other radio
As. NET site to move bricks for a long time, has been committed to digging holes (Bug) pits (Debug), but the technology has not been improved. Also enthusiastic in the study of new technology, dreamed of becoming a technical danale. From
///provide methods to convert other types to JSON// public static class Converttojson {#reg Ion Private Method//////filter special characters///// string //json string private static string String2json (string s) { StringBuilder sb = new
1, boxing and unpacking is an abstract concept
2, boxing is to convert a value type to a reference type;
Unboxing is converting a reference type to a value type
With boxing and unboxing, you can link value types to reference types by allowing any
Principle:
Hide control find a handle, and then use SetWindowText to modify. ‘
I used QT to create a window program, such as
Next, find the window with Spy + + with the VS Band
Create a console program with the following code
#include
General and special character strings
String is one of the primitive types of C #. It is a reference type, corresponding to the System. String type in FCL. What are the similarities and differences between the string type and the common reference
Switch is different from java in. NET .,. Netswitch
1. It cannot run like this
We know that java and C can do this when using the switch.
Switch (I)
{
// Break is not used here in java
// The statement corresponding to case 1 is executed and
Organize knowledge in small and small ways
1. virtual override in C #
class A{ public A() {} public void print1() { Console.WriteLine("print1"); } public virtual void print2() { Console.WriteLine("print2"); }} class AA: A{
How to convert the content in any configuration file and the configuration file
Introduction
Web. config uses the web. Release. config and web. Debug. config files to generate different configuration files under different compilation
Accessibility of members, membership assembly, static class, member static
Accessibility of members
CLR terminology
C # terminology
Description
Private
Private
Members can only be accessed by methods in the definition
C # -- pass value parameter (1 ),
// My C # is followed by Meng Ge (Liu tiemeng) (my formal teacher), and I learned "C # getting started with languages, I also explained some things I don't know. It's a huge fortune and a rare mentor!
This time,
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.