- 博客(8)
- 收藏
- 关注
原创 C#学习笔记之二(stack, queue, string, HashTable,StringBuilder, Regular Expresstion)
Queue: Enqueue() Dequeue() Peek() //only get first element, not delete itStack: Count() Clear() Peek() Pop() Push() CopyTo(array, offset) //copy to arrayDictionary/Hashtable: Keys //colleation of Keys
2004-03-08 11:33:00 1363
原创 C#学习笔记之三(delegate, event, Make XML document )
Delegates: // 1. nomal delegates = create before run, in main //declare class Employee{}; class Couple{} public delegate bool Reverse(object lhs, object rhs); SetOrder(Reverse the DelegatedFunctio
2004-03-08 11:33:00 1177
原创 C#学习笔记之六(stream, Asynchronous data read, HttpWebRequest)
Streaming Data: // Explorer Directory string dir = @"C:/Winnt"; DirectoryInfo dirInfo = new DirectoryInfo(dir); //read and write File Stream inputStream = File.OpenRead(@"c:/test/source/hamlet.txt
2004-03-08 11:33:00 1475
原创 C#学习笔记之七(network I/O, Asynchonouse network I/O)
Network IO; //Server1 programm using System.Net.Sockets; TcpListener tcpListener = new TcpListener(65000); tcpListener.Start(); for(;;) { Socket clientSocket = tcpListener.AcceptSocket() if (client
2004-03-08 11:33:00 1150
原创 C#学习笔记之八(Serialization, ActiveX Control)
Serialization: 1. use attribute // "[serializable]" 2. Formatter // "BinaryFormatter binaryFormatter = new BinaryFormatter();" 3.[Noserialized] //example // if the data can generate based some d
2004-03-08 11:33:00 1232
原创 C#学习笔记之一(basic, class, function,array, collection interface)
最近学习了C#程序设计的课程, 现在将笔记总结如下, 没有系统整理,都是课上记得notes, 后面几部分以程序居多,因为这些笔记没有做过整理,所以很多code没有详细的注释,如果有时间的话,我会对笔记做系统的整理,还有这里没有提及基本的语法介绍,望大家谅解:Basic: //利用out, 不用给i,j assign初始值 int i,j; f(out i, out j) {} //using
2004-03-08 10:02:00 1280
原创 C#学习笔记之五(ADO.net)
ADO.net //Overview Data-->DataReader-->Data Provider--> DataSet Data Provider: Connection, Command, DataAdapter DataSet: DataRelationCollection, DataTable collection(including DataTable)) DataTable:
2004-03-08 10:02:00 1289
原创 C#学习笔记之四(Attribute, Reflection, Thread, Thread Synchronization)
Atributes: //can add metadata in program, It store with the program //using ILDasm to check atributes //usage [CodeReviewAttribute("08/08/2005", "Allan Zhang", Comment = "That is a Attribute test")
2004-03-08 10:02:00 1252 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人