After several years of development, I did not summarize anything. I went back to my hometown to become a trainer in a training class and taught me about software development. A little bit of knowledge is coming from the ground up. Or you have missed
Register modifier implies CompilationProgramThe corresponding variables will be frequently used. If possible, they should be stored in CPU To speed up its storage. For example, the following memory block copyCode, # Ifdef nostructassign
What do. Net cool people know?
What is the difference between a thread and a process?
What is Windows service, its lifecycle and standard exeProgramWhat is the difference between the maximum memory size that a single process can access on
C #ProgramWeek
String time = calendar1.selecteddate. dayofweek. tostring ();//Calendar Control
String time = datetime. Now. dayofweek. tostring ();
However, the English day of the week is obtained.
Dayofweek The returned result is
Using system;
Using system. text;
Namespace code{/// /// Summary of searchcode./// Public class searchcode{Public searchcode (){//// Todo: add the constructor logic here//}/// /// Returns the first letter of a given string./// /// string ///
Get valueForeach (student SS in Stu. values){
MessageBox. Show (ss. Name. tostring ());}
**************************************** *******
Get keyforeach (string key in Stu. Keys)
{MessageBox. Show (key );}}****************
Obtain key and
Chapter 5 and chapter 6 of "C # Sharp experience" are excerpted, mainly about the constructor and destructor, as well as the classification of methods (static methods and constructor methods ), the scope of the method, the method of passing
The summary here is very good. I used it and added some instructions. C #CodeAndJavascriptMutual call of functions Q:1. How to access the C # function in JavaScript?2. How to access the C # variable in JavaScript?3. How to access existing
1. What are the three basic features of object-oriented architecture?
1. encapsulation: Abstract Objective objects into classes. Each class implements protection (private, protected, public) on its own data and methods)
2. inheritance:
1: Create an installation and deployment projectOpen vs, click "Create Project", select "other project type"> "installation and deployment"> "Installation Wizard" (the same is true for the installation project), and click "OK" (for details, see)The
Item 3: preferIsOrAsOperators to casts
Item 1: type conversion using is/AS is preferred
Since C # is a strongly typed language, we should avoid type conversion whenever possible. However, sometimes conversion is unavoidable. In this case, we
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
# Pragma
Once
# Include
"
Stdafx. h
"
# Include
"
Atlbase. h
"
//
# Import "MSXML. dll"
# Import
"
Msxml2.dll
"
Constructor and destructor
This section describes how to create, initialize, and destroy an object. This section describes the following topics:
LClass Constructor
LStructure Constructor
LDestructor
Class Constructor
This section
C # Implementation of P2P file sharing and transmission system I. Model
The concept of P2P is no stranger to everyone, that is, the so-called "point-to-point transmission", that is, data is transmitted between two or more clients without directly
InIn C #, arrays are actually objects.System. ArrayIs the abstract base type of all array types. Provides methods for creating, operating, searching, and sorting arrays. Therefore, it is used as the base class for all arrays in the Common Language
You can call two APIs in kernel32.dll: writeprivateprofilestring and getprivateprofilestring to read INI files.The specific implementation code is as follows:
Using
System;
Using
System. drawing;
Using
System. collections;
Using
C # print all lable and textbox on the form (multiple forms are allowed)
Create a class, allCodeAs follows:
Using system;Using system. Collections. Generic;Using system. componentmodel;Using system. Data;Using system. text;Using system.
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