随笔分类 -  C#

摘要:http://blog.csdn.net/ojlovecd/archive/2009/02/28/3945605.aspx首先添加Microsoft Shell Control And Automation引用,[代码]代码说明:NetWork方法的两个参数说明:第一个为要进行操作的本地连接名称,第二个为你要进行的操作,传入“启用”或“停用”(win... 阅读全文
posted @ 2009-05-15 14:58 jianlinglo 阅读(469) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1、用字符串分隔: using System.Text.RegularExpressions; string str="aaajsbbbjsccc";string[] sArray=Regex.... 阅读全文
posted @ 2009-03-04 10:05 jianlinglo 阅读(193) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->函数 语法 功能 Len Len(string|varname) 返回字符串内字符的数目,或是存储一变量所需的字节数。 Trim Trim(string) 将字符串前后的空格去掉 Ltrim Lt... 阅读全文
posted @ 2009-03-04 10:02 jianlinglo 阅读(513) 评论(0) 推荐(0)
摘要:ArrayList :System.Collections命名空间中定义的一个类;优点:功能比Array类更加强大; 大小是可以动态变化的; 在ArrayList中可以很方便地把一个元素插入到指定的位置,也可以很轻松地删除一个元素;缺点:ArrayList的效率与数组相比就要差一些ArrayList类的方法: (1) Add:向ArrayList中增加元素。(2)... 阅读全文
posted @ 2009-01-13 22:32 jianlinglo 阅读(376) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 无标题页 阅读全文
posted @ 2009-01-13 22:26 jianlinglo 阅读(150) 评论(0) 推荐(0)
摘要:位操作符是对数据按二进制位进行运算的操作符。位操作支持的数据类型是基本数据类型,如byte、short、char、int、long等,C#支持的位操作有如下几种:· 按位与 & · 按位或 | · 按位取反 ~ · 左移 >· 异或^ 在C#中位操作同C的位操作没有什么却别,位操作的速度相对较快,而且如果熟练的话,处理起来也相对方便,例如:在一些权限等相关的设置中,比如:用1、2、4、8、16、3... 阅读全文
posted @ 2009-01-13 11:26 jianlinglo 阅读(201) 评论(0) 推荐(0)
摘要:zhenyulu http://www.cnblogs.com/zhenyulu/ 周公的专栏:http://blog.csdn.net/zhoufoxcn 遥远的梦:http://www.cnblogs.com/ziyiFly/tag/GridView/ 张子阳 :http://jimmyzhang.cnblogs.com/ 老赵:http://jeffreyzhao.cnblogs.... 阅读全文
posted @ 2009-01-13 11:15 jianlinglo 阅读(178) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// Stack名字空间namespace Stack{ using System; public class Stack { //first: 栈最上面一个节点 ... 阅读全文
posted @ 2009-01-13 11:08 jianlinglo 阅读(106) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;public class CharTest{ public static void Main(string[] args) { char m... 阅读全文
posted @ 2009-01-13 11:06 jianlinglo 阅读(127) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;public class CharTest{ public static void Main(string[] args) { char m... 阅读全文
posted @ 2009-01-13 11:00 jianlinglo 阅读(460) 评论(0) 推荐(0)