随笔分类 - C#数据结构
摘要:1、熟悉INotifyPropertyChanged的使用
2、Style样式模板定义
3、ListView数据绑定
4、MessageDialog弹出窗口的使用
阅读全文
摘要:编程在线Windows 8客户端----涵盖编程语言,移动开发,数据库等高质量的技术文章,是一款为IT人士开发的一款软件!即将登陆微软Windows Store应用商店!编程在线网站 http://facejob.sinaapp.com
阅读全文
摘要:using System; using System.Collections.Generic; using System.Web; using System.Web.Script.Serialization; using System.Data; namespace Sheng.Common { /// <summary> /// JSON帮助类 /// </summary>...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//顺序栈类SeqStack<T>的实现说明如下所示。publicclassSeqStack<T>:IStack<T>{privateintmaxsize;//顺序...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///二叉树的应用///</summary>///<typeparamname="T"></typeparam>publiccl...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//接口publicinterfaceIQueue<T>{intGetLength();//求队列的长度boolIsEmpty();//判断对列是否为空voidClear();//清空队列...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//可枚举对象并非必须实现IEnumerable接口。该职责可以委托给第三个类来实现。publicclassPersons{string[]m_Names;publicPersons(paramsst...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//链堆栈的接口定义如下所示。publicinterfaceIStack<T>{intGetLength();//求栈的长度boolIsEmpty();//判断栈是否为空voidClear...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--/*-------------实现类对象的枚举遍历如果希望枚举一个可枚举对象(实现IEnumerable接口)的元素,就可以通过IEnumerable接口的GetEnumerator()*方法从可枚举...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--单链表结点类的实现如下所示。publicclassNode<T>{privateTdata;//数据域privateNode<T>next;//引用域//构造器publicNo...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1.根据查询结果构建实体类公共接口publicinterfaceIEntityTranslate{///用class关键字表示约束为引用类型///用struct关键字表示约束为值类型TEntityTr...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///默认构造函数约束///</summary>///<typeparamname="U"></typeparam>public...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicclassYieldReturn{//yieldreturn用于无缝实现迭代模式。string[]strArr;publicYieldReturn(paramsstring[]arr){s...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicclassPerson{privatestringm_name;privateintm_birthday;publicPerson(stringname,intbirthday){m_na...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/------DataReader转换为实体的泛型类---注意数据库表字段名和实体类相同publicclassEntityTranslate{///用class关键字表示约束为引用类型///用struct关...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1classProgram2{3staticvoidMain(string[]args)4{5stringstr1="";6stringstr2="中";78Console.WriteLine(str...
阅读全文
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--classProgram{classA{publicA(){PrintFields();}publicvirtualvoidPrintFields(){}}classB:A{intx=1;inty;...
阅读全文
摘要:#region 设置文本框只能输入数字型字符串 /// <summary> /// 文本框只能输入数字型和单精度型的字符串. /// </summary> /// <param name="e">KeyPressEventArgs类</param> /// <param name="s">文本框的字符串</param> ///...
阅读全文
摘要:abstract class和interface是Java语言中对于抽象类定义进行支持的两种机制,正是由于这两种机制的存在,才赋予了Java强大的面向对象能力。abstract class和interface之间在对于抽象类定义的支持方面具有很大的相似性,甚至可以相互替换,因此很多开发者在进行抽象类定义时对于abstract class和interface的选择显得比较随意。其实,两者之间还是有很...
阅读全文