Everyone used this long. Nothing found C # can use Chinese variables !! You can use this feature to thoroughly change the easy-t

xiaoxiao2021-03-06  71

For example: use system.drawing; use system.collections; using system.componentmodel; using system.windows.form; using system.data ;. using system.data ;. Using system.data ;. USING SYSTEM.DATA;

A summary description of Namespace WindowsApplication1 {///

/// Form1. /// public class form1: system.windows.Forms.form {/// // The designer variable is required. /// private system.componentmodel.container components = null; private int integer; // Chinese variable! ! Private string characters;

Public form1 () {initializationComponent (); integer = 123456789; Character type = "It is possible to improve program code easy-to-read !!"; MessageBox.show (character type this. integer .tostring ());}

///

/// Clean all the resources being used. /// Protected Override Void Dispose (Bool Disposing) {if (disponents! = Null) {components.dispose ();}} Base.Dispose

#REGION Windows Form Designer The code ///

/// designer supports the required method - do not use the code editor to modify the // / this method. /// private void initializecomponent () {/// Form1 // this.AutoscaleBasesize = new system.drawing.size (6, 14); this.clientsize = new system.drawing.size (292, 273 This.name = "form1"; this.text = "form1";

} #Endregion

///

/// The primary entry point of the application. /// [stathread] static void main () {Application.run (new form1 ());}}} I saw it? In order to improve the easy-readability of the program, everyone uses Chinese variables from now on. Oh .. .............................................................................................................................................................. What is the way?

转载请注明原文地址:https://www.9cbs.com/read-87299.html

New Post(0)