This article describes a very important and one of the powerful tools in C#. This is based on a famous design pattern called Observer. Observer design pattern dictates what is called as subscriber-publisher paradigm. An example will make it...
国内最大的酷站演示中心! 点击看优秀酷站设计... .NET技术是微软大力推广的下一代平台技术,自从.NET技术架构Beta2版本的正式发布,此项技术也逐渐走向成熟和稳定。按照微软的平台系...
WEB开发专业社区,阿里西西WEB开发。 ADO.net //Overview Data--DataReader--Data Provider-- DataSet Data Provider: Connection, Command, DataAdapter DataSet: DataRelationCollection, DataTable collection(including DataTable)) DataTa...
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)] class Employee //define target and atr [Attribu...
本文来源于阿里西西WEB开发社区http://www.alixixi.com收集整理,欢迎访问。 Queue: Enqueue() Dequeue() Peek() //only get first element, not delete it Stack: Count() Clear() Peek() Pop() Push() CopyTo(array, offset) //copy...
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 DelegatedFunction) //init Couple.Reverse employeeByID = new Coup...
阿里西西下载中心 - 最新优秀源码下载 Network IO; //Server1 programm using System.Net.Sockets; TcpListener tcpListener = new TcpListener(65000); tcpListener.Start(); for(;;) Socket clientSocket = tcpListener.AcceptSocket() if...
Serialization: 1. use attribute // [serializable] 2. Formatter // BinaryFormatter binaryFormatter = new BinaryFormatter(); 3.[Noserialized] //example // if the data can generate based some data, then no need to serialize them. // overload t...
本文来源于阿里西西WEB开发社区http://www.alixixi.com收集整理,欢迎访问。 //获得汉字的区位码 byte[] array = new byte[2]; array = System.Text.Encoding.Default.GetBytes(啊); int i1 = (short)(array[0] - '\0'); int...