Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - string类的方法
Search - string类的方法 - List
用C#编写的基于.NET1.1的数据库公共操作类,你只需要在类中定义连接字符串后即可以SQL命令字符串作为参数调用对数据库的增、查、删、改等方法,你也可以再进一步修改和完善功能。-prepared with C#-based.NET1.1 public database operations, you only need to define the category after the string can connect SQL command string as a parameter called by the database. the investigation, delete, etc., you can further revise and improve function.
Date : 2008-10-13 Size : 1.74kb User : Jerry

DL : 0
考虑到C#中的string类提供的Split方法无法实现针对串参数的分割,所以自己解决了。主要实现了对String类的扩展,使之支持string参数的Split。-C# taking into account the type of string Split method can not be realized against the division series parameters , and they therefore resolved. Major Implementation of the expansion of the String class that supports string parameters of Split.
Date : 2008-10-13 Size : 534byte User : 林宜聪

DL : 0
本示例演示了一个命令行接口,该接口提供与环境中的类型有关的信息。本示例为开发人员提供了一种简单的方法,可用来确定哪些类型是可用的,它们位于哪些模块中,以及哪些接口、方法、字段、属性和事件对每个类型可用。本示例还演示了反射,它是一种在运行时获取有关程序集和在程序集中所定义类型的信息,以及创建、调用和访问类型实例的过程。 此示例使用下面的技术和类。 反射 Assembly - 将程序集加载到 AppDomain 中,以便可以在这些程序集中搜索类型。 Module - 从程序集或模块中获取类型,以便与搜索字符串进行比较。 Type - 获取有关类型的信息,例如类型名称、命名空间和成员。 PropertyInfo - 提供有关类型中的属性的信息。 EventInfo - 提供有关类型中的事件的信息。 FieldInfo - 提供有关类型中的字段的信息。 MethodInfo - 提供有关类型中的方法的信息。 IO TextWriter - 由此示例中定义的类型 IndentedWriter 使用,以通过一般方式输出到控制台。 文本 StringBuilder - IndentedWriter 示例类型使用它来创建字符串。 String - 查找字符串,例如格式字符串、子字符串和大写字符串。 集合 ArrayList - 管理字符串列表。
Date : 2008-10-13 Size : 16.84kb User : 王子

用C#编写的基于.NET1.1的数据库公共操作类,你只需要在类中定义连接字符串后即可以SQL命令字符串作为参数调用对数据库的增、查、删、改等方法,你也可以再进一步修改和完善功能。-prepared with C#-based.NET1.1 public database operations, you only need to define the category after the string can connect SQL command string as a parameter called by the database. the investigation, delete, etc., you can further revise and improve function.
Date : 2026-01-01 Size : 1kb User : Jerry

DL : 0
考虑到C#中的string类提供的Split方法无法实现针对串参数的分割,所以自己解决了。主要实现了对String类的扩展,使之支持string参数的Split。-C# taking into account the type of string Split method can not be realized against the division series parameters , and they therefore resolved. Major Implementation of the expansion of the String class that supports string parameters of Split.
Date : 2026-01-01 Size : 1kb User : 林宜聪

DL : 0
本示例演示了一个命令行接口,该接口提供与环境中的类型有关的信息。本示例为开发人员提供了一种简单的方法,可用来确定哪些类型是可用的,它们位于哪些模块中,以及哪些接口、方法、字段、属性和事件对每个类型可用。本示例还演示了反射,它是一种在运行时获取有关程序集和在程序集中所定义类型的信息,以及创建、调用和访问类型实例的过程。 此示例使用下面的技术和类。 反射 Assembly - 将程序集加载到 AppDomain 中,以便可以在这些程序集中搜索类型。 Module - 从程序集或模块中获取类型,以便与搜索字符串进行比较。 Type - 获取有关类型的信息,例如类型名称、命名空间和成员。 PropertyInfo - 提供有关类型中的属性的信息。 EventInfo - 提供有关类型中的事件的信息。 FieldInfo - 提供有关类型中的字段的信息。 MethodInfo - 提供有关类型中的方法的信息。 IO TextWriter - 由此示例中定义的类型 IndentedWriter 使用,以通过一般方式输出到控制台。 文本 StringBuilder - IndentedWriter 示例类型使用它来创建字符串。 String - 查找字符串,例如格式字符串、子字符串和大写字符串。 集合 ArrayList - 管理字符串列表。 -err
Date : 2026-01-01 Size : 17kb User : 王子

本示例演示了用C#操作MySQL的方法,提供了三个可重用的类MySqlDBUtil,MySqlPageUtil,Page。 本例程演示了: 1.MySQL数据库的插入,更新,修改,查询; 2.带参数的sql语句的使用,而不是拼SQL; 3.使用Limit子句的分页查询; 4.用事务同时执行多个SQL语句; 5.在插入数据的同时返回最新的ID值; 6.整型,实型,字符串,日期型,布尔型五种数据类型的操作; 7.使用正则表达式来验证整数和实数; 8.listview用来显示数据的一些基本用法。 -This example demonstrates the use of C# Operation method of MySQL to provide three types of reusable MySqlDBUtil, MySqlPageUtil, Page. Demonstrated the routine: 1.MySQL database insert, update, modify, query 2. The sql statement with parameter use, rather than fight SQL 3. The use of Limit clause paging query 4. With affairs at the same time to run multiple SQL statement 5. Insert data at the same time to return to the latest ID value 6. integer, real, string, date, type, five kinds of data types Boolean operations 7. use regular expressions to verify integer and real numbers 8.listview used to display some of the basic usage data.
Date : 2026-01-01 Size : 198kb User : 陈述器

DL : 0
这是DLL文件,引用到工程就可以了, 主要修改的地方我说明下 key kk = new key() int pid = kk.pid("CQ.EXE") //获取进程PID kk.getread(pid, "", 0x298, 4).ToString() //返回INT值的内存读取 kk.getread(pid, 0x04, 4) //返回STRING的内存读取,少了一个参数. 自己写了个全局键盘钩子, kk.UnHook() //加载钩子 kk.UnHook() //卸载钩子 kk.SetHookKey(key1,key2) //修改键盘 key1,被改变的键盘码,key2改变后的键盘码 没什么用,比方:就是能把键盘1个键,改成别的键 这是读取内存地址的方法 getread("进程名称","","内存基址",0) 这个类,封装了2个方式,一种是系统api[user32.dll]文件,调用方式 key kk = new key() kk.send(key.VirtualKeys.VK_F1,GetState(key.VirtualKeys.VK_F1)) 这是模拟键盘的F1. 这是模拟键盘的winio调用方式 key kk = new key() // IntPtr a = new IntPtr() kk.sendwinio() kk.MykeyDown((int)key.VirtualKeys.VK_F1) System.Threading.Thread.Sleep(2000) kk.MykeyUp((int)key.VirtualKeys.VK_F1) 也是模拟f1,之间的差别就是,winio调用方式能穿透一部分游戏,达到一部分外挂的效果.-key kk = new key() // IntPtr a = new IntPtr() kk.sendwinio() kk.MykeyDown((int)key.VirtualKeys.VK_F1) System.Threading.Thread.Sleep(2000) kk.MykeyUp((int)key.VirtualKeys.VK_F1)
Date : 2026-01-01 Size : 10kb User : qwery

DL : 0
此dll文件名为py.dll C# 命名空间名是py 类名是mypy 用来得到汉字拼音首字母的方法是GetChineseSpell(string chines) -C# getchinese
Date : 2026-01-01 Size : 2kb User : 张嘉民

DL : 0
这是继承自System.object的一个方法,并把对象的类名作为一个字符串返回,该类名用所有相关的命名空间来限定。-This is a method inherited from System.object, and the object s class name as a string, the class name with all the relevant namespace qualified.
Date : 2026-01-01 Size : 13kb User : 浩雪

DL : 0
这个只是一个小工具,可以用来提高编程效率。 只要是来操作剪贴板,比如:将剪贴板中所有字母大写,全部小写,首字母大写,将复制的内容加上@。 制动封装的使用方法:比如 private int i 只需复制 int i 然后点击制动封装,直接Ctrl+V就封装好了。 生成完整的类:可以封装这个类中所有的属性,和生成两个构造方法。使用方法再要封装的类里直接Ctrl+A,Ctrl+C 点击按钮生成完整的类Ctrl+V就可以了 最后就是可以到数据库生成类,这个连接字符串可能要改,能将数据库的一张表中所有的字段封装好,同时生成两个构造方法。用法:类名最好用 点击获取类名按钮得到的类名,点击生成完整的类,Ctrl+V就可以了-This is just a small tool that can be used to improve programming efficiency. As long as it is to manipulate the clipboard: Clipboard in all letters uppercase, all lowercase, capitalize the first letter, copy and @. The use of the brake package: for example private int i Simply copy int i then click brake package, direct Ctrl+V on packaged. Categories: generate complete package of all the properties in this class, and generates two constructors. Class use to be encapsulated directly Ctrl+A, Ctrl+C Click the button to generate a complete the class Ctrl+V on the last to the database is that you can generate class may have to change the connection string, a table in the database can be packaged field , at the same time generate two constructors. Usage: class name best get the class name of the button to get the class name with a click, click generate complete class, Ctrl+V can
Date : 2026-01-01 Size : 2.09mb User : 邓星

DL : 0
现在假设我们想要获得多个订阅者的返回值,以List<string>的形式返回,该如何做呢?我们应该记得委托定义在编译时会生成一个继承自MulticastDelegate的类,而这个MulticastDelegate又继承自Delegate,在Delegate内部,维护了一个委托链表,链表上的每一个元素,为一个只包含一个目标方法的委托对象。而通过Delegate基类的GetInvocationList()静态方法,可以获得这个委托链表。随后我们遍历这个链表,通过链表中的每个委托对象来调用方法,这样就可以分别获得每个方法的返回值:-Now suppose that we want to get more subscribers to return value to List <string> In the form of return, and how to do it? We should remember commissioned generate a inheritance since the MulticastDelegate the class is defined at compile time, the MulticastDelegate inherited from Delegate, Delegate internal, maintaining a delegate list, each element of the list, on the, contains only one target for a The delegate object. By Delegate base class GetInvocationList () static method, you can get the delegate list. Then we traverse the linked list, call the method by each delegate object in the linked list, so that you can get the return value of each method:
Date : 2026-01-01 Size : 1kb User : 刘铭杰

DL : 0
1.C#和.NET Framework简介 Z.C#基础语法 3.面向对象概念和C#类的概念 4.类成员详解 5.创建和自定义类型 6.方法、委托、事件的创建和使用 7.常用类讲解(string,数组,集合,泛型)-1.C# and. NET Framework Introduction to the basic syntax of ZC# 3. Oriented objects concept and the concept of the C# class 4 class members detailed to create and custom type 6. Methods, commissioned the creation of the event and use 7 commonly used class to explain (string, array, collection, generics)
Date : 2026-01-01 Size : 420kb User : zhiwenshu

C#使用命名空间NameSpace的一个基础实例,以命令提示符控制台的形式显示出演示结果,挺基础的C#例子,使用using指令引入命名空间NameSpace,实例化NameSpace中的类,调用类中的Myls方法,建立命名空间,自定义NameSpace中的类,输出字符串-C# of use named space NameSpace a-the basis of instance of, in order to the in the form of of the command prompt Console display out of the demo results, the quite of the C# example of of the the basis of, the use of the a using directive the introduction of naming space is NameSpace, the the classes in the the to instantiate the NameSpace, the the Myls in the the method in the call the class establish namespace, class, the output string custom NameSpace
Date : 2026-01-01 Size : 5kb User : hpudn80

DL : 0
编写一个控制台应用程序,程序中有两个类定义,一个是创建程序时系统自动创建的类Class1,一个是用户自定义的Student类,要求该类包含私有字段:学号(字符串)、姓名(字符串)和性别(字符),具有三个属性:学号(读写)、姓名(只读)、性别(读写),具有有参构造方法、具有同时显示学生个人信息的方法。在Class1类的Main方法中完成以下功能:  (1)从键盘上输入一个学生的个人信息(学号、姓名、性别)。 (2)修改该学生的学号和性别。 -Write a console application, the program has two class definitions, one is created automatically when you create a program of class Class1, one is a user-defined Student class, requiring class contains private fields: Student ID (string), Name (string) and gender (character), has three attributes: Student ID (read-write), name (read only), gender (read-write), with a parameter constructor method, with simultaneous display students' personal information. In the Main method of the Class1 class to complete the following functions: (a) from the keyboard to enter a student' s personal information (student number, name, sex). (2) modify the student' s school number and gender.
Date : 2026-01-01 Size : 20kb User : 谁家小妞

DL : 0
编写一个控制台应用程序,程序中有两个类定义,一个是创建程序时系统自动创建的类Class1,一 个是用户自定义的Student类, 要求该类包含私有字段:学号(字符串)、姓名(字符串)和性别(字符),具有三个属性:学号(读写)、姓名(只读)、性别(读写), 具有有参构造方法、具有同时显示学生个人信息的方法。在Class1类的Main方法中完成以下功能: (1)从键盘上输入一个学生的个人信息(学号、姓名、性别)。 (2)修改该学生的学号和性别。 (3)打印修改前后该学生的个人信息。-2. Write a console application, the program has two class definition, a class Class1 is automatically created when you create the program, one is user-defined class Student, Requirements class contains private fields: school (string), name (string) and gender (character), has three attributes: Student ID (read-write), name (read-only), gender (read-write), There have arg constructor, having also shows students personal information. Complete the following features in the Main method Class1 class: (1) Enter a student s personal information (student number, name, sex) the keyboard. (2) modify the student s student number and gender. The student s personal information before and (3) Print modifications.
Date : 2026-01-01 Size : 1kb User : 高鹏
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.