上一页 1 ··· 14 15 16 17 18
摘要: C#数字格式化输出 int a = 12345678; //格式为sring输出 Label1.Text = string.Format("asdfadsf{0}adsfasdf",a); Label2.Text = "asdfadsf"+a.ToString()+"adsfasdf"; Label1.Text = string.Format("asdfadsf{0:C}adsfasdf... 阅读全文
posted @ 2009-04-07 22:52 Rain520 阅读(869) 评论(0) 推荐(0) 编辑
摘要: 1.创建Xml树 Gaby 12 GuangZhou Bill 33 USA BiLy 19 HuNan 如果要创建如上的XML树: 代码示例: XElement x... 阅读全文
posted @ 2009-04-07 09:35 Rain520 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: 更多请参见:http://www.w3school.com.cn/htmldom/dom_obj_event.asp 阅读全文
posted @ 2009-04-06 22:28 Rain520 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: ASP.net MVC Mock Context(上下文) Code var fakeContext = new FakeControllerContext(controller, new NameValueCollection(), new NameValueCollection()); Code highlighting produced by Actipro CodeHighli... 阅读全文
posted @ 2009-04-03 17:01 Rain520 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: 泛型作用 使用泛型类型可以最大限度地重用代码、保护类型的安全以及提高性能。 泛型最常见的用途是创建集合类。 .NET Framework 类库在 System.Collections.Generic 命名空间中包含几个新的泛型集合类。应尽可能地使用这些类来代替普通的类,如 System.Collections 命... 阅读全文
posted @ 2009-03-27 17:51 Rain520 阅读(311) 评论(0) 推荐(0) 编辑
摘要: AttributeUsage 类是另一个预定义的属性类,以帮助我们控制自定义属性的使用。亦即我们可以定义自定义属性类的属性。这个类描述了如何使用自定义的属性类。AttributeUsage有三个数据属性可用以修饰我们的自定义的属性: ValidOn 定义了自定义属性在哪些程序实体上可被使用。这个可使... 阅读全文
posted @ 2009-03-27 16:28 Rain520 阅读(507) 评论(0) 推荐(0) 编辑
摘要: Codeint[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; 对此数组进行查询,查询小于5的数: 方法1:( 使用查询表达式) var lowNus = from n in numbers where n n ourfunc = delegate(int n) { return n myfunc = n => n > exp = n => ... 阅读全文
posted @ 2009-03-26 16:34 Rain520 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 看过好张子阳,重典的在博客园的很多文章之后,今天我自己也终于在这里安家了。 我现在是做.net mvc的,希望和大家共同交流,相互学习!!! 阅读全文
posted @ 2009-01-31 21:17 Rain520 阅读(196) 评论(1) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18