C # Study Notes (1)

1. structure (struct) and class (class)[Attributes] [modifiers] struct identifier [: interfaces] body [;]Similar to a class, the structure indicates the data structure that can contain data members and function members. Different from the class, the

Data structures and algorithms (C # implementation) series --- generalized tree (II)

Data structures and algorithms (C # implementation) series --- generalized tree (II) Heavenkiller (original)   Public override object Key {get {return this. key ;}} Public override uint Degree {get {return this. degree ;}} // Public override uint

How to obtain the IP address of a machine in C #

Tips on how to use the DNS class and get the IP address of the machine Introduction This article is not a technical overview or a large-scale discussion, but more like a collection of tips on how to get an IP address or host name. You can use the

Use C # and VB. NET to implement VS. NET or Office XP menus (2)

  Use C # and VB. NET to implement VS. NET or Office XP menus Stingy god 2001.08.18 2."Owner-drawn menus"Technology In this exampleVB. NETSyntax.I removed the sumMenuUnrelatedClassThe reason is that there are too many errors and you will encounter

C #. net Common Function list

1. DateTime numeric typeSystem. DateTime currentTime = new System. DateTime ();1.1 take the current year, month, day, hour, minute, secondCurrentTime = System. DateTime. Now;1.2 get current yearInt Year = currentTime. Year;1.3 take the current

C # how to operate the control status on the UI Layer in the class

I have been engaged in B/S development for a long time. I seldom do C/S development and use fewer threads. Recently, some small software used in some work has finally used threads, record some experiences.Scenario:1: assume there is a Form F with a

Query database data (WinForm + SQL Server)

 Input a select statement for the SqlDataAdapter class, add the result to the DataSet result set in the form of rows through the Fill method, and then present the result to the user in the form of scroll below. The main program code is as follows.

Use the powerdesigner 15 Object Oriented Model to generate the nhibernate Object class, ing

Previously, we used to generate database tables through the powerdesigner Object Oriented Model, and then generate the nhibernate Object class and ing files through the code generator. It is not very straightforward. With the built-in functions of

C # compile the startup welcome page

Step 1: The main program starts the main form (form1)As follows:Static class Program{/// /// Main entry point of the application./// [STAThread]Static void Main (){Application. EnableVisualStyles ();Application. SetCompatibleTextRenderingDefault

C # Collection framework

The System. Collections namespace contains interfaces and classes that define a set of objects (such as lists, queues, bit arrays, hash tables, and dictionaries.System. collections. the Generic namespace contains interfaces and classes that define a

C # implement automatic screen lock + off screen

Recently found the windows Lock screen API: LockWorkStation As a result, I integrated the previous screen-off API and made some things that I could choose to automatically lock the screen and turn off the screen. The following code snippet:   Public

C # create a mutex program _ only one program instance can be run

C # create a mutex process (Program) A mutex process (Program). Simply put, only one instance of the program can run in the system. Currently, many software have this function. To achieve program mutex, there are usually the following

Use the Demo to take a closer look at the internal mechanism of the C # event

 So here I will use the C # event to describe the Delegate (Delegate ). Let's take a look at the sample code: Code public delegate void ProcessEventHandler (string name ); Public class CharlesLog { Public event ProcessEventHandler

Three solutions to import Excel file data to SqlServer Database

Solution 1: Use OleDB to obtain data from an Excel file and then use DataSet to transfer data to SQL Server. This method has the advantages of being flexible, you can perform operations on cells in an Excel table as needed.   OpenFileDialog = new

C # general types of perfect verification codes written

Using System; Using System. Collections; Using System. ComponentModel; Using System. Data; Using System. Drawing; Using System. Web; Using System. Web. SessionState; Using System. Web. UI; Using System. Web. UI. WebControls; Using

C # code specifications and quality check tools

Code style check: StyleCop Code Defect check: FxCop Code Quality: Code metric/Code MetricsStyleCop Introduction The StyleCop tool provides warnings that indicate style and consistency rule violations in C # code. the warnings are organized into rule

C # Install and uninstall the batch processing code for Windows Services

Echo press any key to start installing the background services of the customer management platform...Echo.PauseEcho.Echo clears the original service items...% SystemRoot % Microsoft. NETFrameworkv2.0.50727installutil/u d: ServiceWindowsService1.exe>

Analysis of C # data types and memory management mechanism (2)

1. Object Class re-analysis: System. Object is the base class of all. Net classes, including value type and reference type. Why does the value type inherit from System. Object? Isn't the Object of the reference type? This involves an interesting and

C # remote machine operation Through WMI

A few days ago, I still had no idea about WMI, and I didn't even know its abbreviation... However, projects use this knowledge, so we will share what we have learned over the past few days.   The following is the original description of WMI by MSDN:

C # What we should know from delegation to Lambda expressions -- why?

After the publication of the previous blog post, I am very pleased to receive the attention of many bloggers. It is very valuable for me to encourage and give some suggestions, in this article, we will talk about the convenience that lambda

Total Pages: 626 1 .... 125 126 127 128 129 .... 626 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.