文章分类 -  C#学习

.net,C#,WPF等
摘要://用var关键字作数组初始化器using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { publ... 阅读全文

posted @ 2014-04-20 03:08 lbsf 阅读(246) 评论(0) 推荐(0)

摘要://TimerElapsed 事件using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Timers; namespace ConsoleApplication1{... 阅读全文

posted @ 2014-04-20 02:43 lbsf 阅读(2851) 评论(0) 推荐(1)

摘要:C# 泛型结构体(struct)泛型在编程时相当有用,它提高了程序运行的效率,避免了拆箱与装箱的耗资源操作。下面这个例子是一个结构体的泛型,在结构体中 定义两个泛型变量x,y 代码如下:using System;namespace StructEx{ class Program { struct P... 阅读全文

posted @ 2014-04-19 23:03 lbsf 阅读(2762) 评论(0) 推荐(0)

摘要:C#基础---委托与函数using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { delegate ... 阅读全文

posted @ 2014-04-18 01:37 lbsf 阅读(145) 评论(0) 推荐(0)

摘要:C#基础---泛型与数组2using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { public ... 阅读全文

posted @ 2014-04-18 00:21 lbsf 阅读(102) 评论(0) 推荐(0)

摘要:C#基础---泛型与数组1:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static ... 阅读全文

posted @ 2014-04-17 23:10 lbsf 阅读(174) 评论(0) 推荐(0)

摘要:C# 使用Random输出10个随机数,代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;namespace ConsoleApplicat... 阅读全文

posted @ 2014-04-16 16:59 lbsf 阅读(909) 评论(0) 推荐(0)

摘要:.sln:解决方案文件 解决方案资源管理器提供显示管理文件 图形接口所需 信息.csproj:项目文件 创建应用程序所需 引用、数据连接、文件夹和文件 信息.aspx:Web 窗体页由两部分组成:视觉元素(HTML、服务器控件和静态文本)和该页 编程逻辑 Visual Studio 两 组成部分分别... 阅读全文

posted @ 2014-04-11 09:18 lbsf 阅读(304) 评论(0) 推荐(0)

导航