me, a 34-year-old middle-aged uncle. More than 10 years, from C + + to C #, from CS to BS. When you sleep, you dream of "missing object", "Undefined", "Failed to load resource". Not done before BS development Fortunately, the use of the technology
Self-Study C # has more than 20 days, during a trip to Shenzhen for a week, the average study of 4 hours per day, reading + video, before a bit of C language Foundation (only basic haha), plan 30 C # Basic grammar and SQL basic syntax familiar, the
TreeNode RecursionRecursion: Call yourself a layer of data to find outTreeNode: Multiple nodes can be created Private voidButton1_Click (Objectsender, EventArgs e) {DataBind ("0001", Treeview1.nodes); } Public voidDataBind (stringcode,
Obtains the longest or shortest length of an element in a string array.
There is a string array below:
string[] elements = {"adsf","etwert" ,"asdfasd","gs"};
The length must be the longest or shortest length of the element.You can create an object
Devexpress Gridview custom summary CustomSummaryCalculate (weighted average ),
Devexpress Gridview provides simple methods such as sum and average. You need to customize complicated summary methods by using the gridview msummarycalculate event of
Obtain the VS and SQLServer file paths through the registry.
Obtain the disk installation directory of any VS and SQLServer.
Background requirement: If VS or SQLServer is installed on the disk computer, the user of the computer is deemed to be a
Several methods are used to find the maximum and minimum values in an integer array.
In an integer array, we need to obtain the maximum and minimum values of array elements:
Method 1: first use Array for sorting, and then from the sorted Array, the
Unity3D: Physical rays and unity3d rays
RAY:From a point to a direction, a ray of infinite length is emitted, which will collide with an object with a Collider component in the scene.
Use of rays:
1 public class Test 2 {3 private void Start () 4 {5
Constructor and object initializer
Constructor:Used to instantiate an object.
Generally, a default no-argument constructor exists in the class or struct. If we manually write a constructor with parameters in the class, the constructor without
Multi-state virtual methods, abstract classes, interfaces, and multi-state abstract class interfaces
Virtual method:
1. Add the virtual keyword before the return value of the parent method and mark it as a virtual method, which indicates that this
ViewModel and MVCViewModel in MVC
The ViewModel concept is not only available in the MVC model. You will see it in many articles about MVC, MVP, and MVVM, and this concept may be mentioned in any technology, for example, ASP. NET, Silverlight, WPF,
C # (string method summary ),
1. character array and String Conversion
(1) ToCharArray () converts a string into a character array
String s = 'blog I like ';
Char [] chs = s. ToCharArray ();
(2) obtain the string from the character array new string (
C # encryption and decryption using AES,
Many tutorials on the Internet use the Rijndael class for encryption and decryption, but this class is not supported by the author. Is it because special references are required?
However, the author finds
Use MVC to import and export, and use MVC to Import and Export
The import and export operations are very difficult for the people who have just done so, but it is very easy to understand the idea. I have studied it for a long time before I finally
The feature of moving objects between reconstruction methods [1 ].
Total returned directory
Directory of this section
Move Method)
Move Field)
1. Move Method (migration function) Overview
In your program, there is a function that communicates
C # decompress the package file,
First, you must reference the Class Library: using Ionic. Zip. This class library can be downloaded online.
The following encapsulation method is used for the Class Library:
Obtains the ZIP compressed stream object
C # The first Singleton mode,When we use QQ, we will find that he can start multiple QQ, but sometimes, we don't want to do this, at this time we need to use the singleton mode. 1. convert the Form2 constructor to private
Using System. Windows.
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