C#异步编程

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ConsoleApplication1{ class Program { private static int Task(in …… 阅读全文

C#线程池

using System;using System.Threading;public class ThreadTest{ static double number1 = -1; static double number2 = -1; public static void Main() { int maxThreadNum, portThread …… 阅读全文

C# 死锁

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace Demon{ class Program { private static object obj1 = new object( …… 阅读全文

C#顺序表操作

using System;using System.Text;using System.Collections.Generic;using System.Linq;using System.IO;namespace test{ class Program { public int Length; public string Path = …… 阅读全文

C#之链表使用

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace test{ class Node //链表节点 { public string data; public Node next; } …… 阅读全文

C# 变量与子级变量

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace test{ class Program { public int j; public void A() { int j …… 阅读全文

C# Socket简单例子(服务器与客户端通信)

服务器端代码:using System.Net.Sockets; using System.Net; using System.Threading;using System;using System.Text;namespace SocketServer { class Program { private static byte[] …… 阅读全文

C#TcpClient TcpListener客户端服务器程序

服务器程序:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.Net.Sockets;using System.IO;using System.Threading;namespace SocketServe …… 阅读全文