C#学习笔记
文章平均质量分 75
lithiumcn
这个作者很懒,什么都没留下…
展开
-
A01_C#IO目录管理
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO; //输入输出流using System.Reflection; //反原创 2017-12-06 11:17:24 · 103 阅读 · 0 评论 -
A02_IO路径管理
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace A02_IOPathManagement{ class Demo4 { pr原创 2017-12-06 11:32:42 · 146 阅读 · 0 评论 -
A03_IO文件管理
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace A03_IOFileManagement{ class Demo5 { pri原创 2017-12-06 11:39:24 · 956 阅读 · 0 评论 -
A04_IO文件直接读写
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace A04_IOFileStream{ class Demo6 { private原创 2017-12-06 11:46:20 · 118 阅读 · 0 评论 -
A05_IO文件流读写
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace A05_IOFileStreamTec{ class Demo7 { pr原创 2017-12-06 11:49:31 · 128 阅读 · 0 评论 -
A06_大文件拷贝
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace A06_CopyBigFileByFileStream{ class Demo8 {原创 2017-12-06 12:09:57 · 141 阅读 · 0 评论 -
A07_文本文件的读写
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace A07_IOTextFileReadAndWrite{ class Demo9 {原创 2017-12-07 11:49:44 · 139 阅读 · 0 评论 -
A20_Socket编程UDP协议通讯
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Threading;using System.Net;using System.Net.Sockets;namespace A20_原创 2017-12-13 00:47:28 · 154 阅读 · 0 评论 -
A19_Soket编程TCP协议通讯
/* * Socket(套接字)编程 * 设备之间的识别依靠IP地址 * 设备中进程之间的是别的靠端口号 * TCP/IP协议 用于距离较远的,对精准度要求高的信息传输 * UDP协议用于距离较近,对信息精准度要求较低但要求速度快的信息传输 * * * **/using System;using System.Collections.Generic;using Syste原创 2017-12-13 00:43:00 · 192 阅读 · 0 评论 -
A18_深入了解多线程
/* * 测试线程的“死锁”,及解决方法 * * * * **/using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Threading;namespace A18_Inde原创 2017-12-12 18:07:35 · 250 阅读 · 0 评论 -
A09_正则表达式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Text.RegularExpressions;//正则表达式的概念//检查,检索,替换那些符合某个模式的文本//屏蔽或替换用户输入原创 2017-12-07 11:59:07 · 145 阅读 · 0 评论 -
A10_委托基础回顾
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace A10_IndepthStudyDelegate{ //定义委托 public delegate void InformInf原创 2017-12-08 21:23:52 · 103 阅读 · 0 评论 -
A11_C#封装的委托
/* * Action 委托 没有返回值没有参数 * */using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace A11_DelegateInSystem{ class Dem原创 2017-12-08 21:26:33 · 232 阅读 · 0 评论 -
A12_获取与清空委托列表|匿名委托|Lambda表达式
/* * 委托的取值与清空委托列表 * * **/using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace A12_GetAndCleanDelegateList{ class Dem原创 2017-12-08 21:30:32 · 189 阅读 · 0 评论 -
A13_委托与事件的区别
/* * * 事件不能声明局部实例 * 事件不能作为方法的参数 * * * ***/using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace A13_DifferentBetweenD原创 2017-12-08 21:32:09 · 128 阅读 · 0 评论 -
A14_反射
/* * 1.反射是通过程序,了解及调用“程序集”的相关属性,方法,字段 * 通过反射可读取程序集(*.exe *.dll)中代码的内容 * 可以根据(字符串)类名,来动态创建类的对象 * 可以动态获取对象中的方法、属性、字段 * 可以根据(字符串)方法名称来调用执行。 * * 使用反射需要引入命名空间 System.Reflaction * Type类实例可以获取类的名称、所原创 2017-12-10 15:21:35 · 122 阅读 · 0 评论 -
A15_特性
/* * * Obsolete * * * * **/using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Reflection;using System.Diagno原创 2017-12-10 15:29:13 · 200 阅读 · 0 评论 -
A16_Linq查询表达式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace A16_LinqQueryExpression{ public class Employee { public原创 2017-12-12 00:12:32 · 141 阅读 · 0 评论 -
A17_多线程
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Threading;namespace A17_Multithreading{ class MyThread {原创 2017-12-12 18:04:13 · 330 阅读 · 0 评论 -
A08_序列化与反序列化
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace A01_SerializeAndDeserialize{ [Serializable]//可序列化且不可被赋值 class Pe原创 2017-12-07 11:56:27 · 106 阅读 · 0 评论