04 2015 档案

摘要:Inheritance and Polymorphism派生类不能访问基类的私有成员,但可以访问公共成员和protected成员,而外部代码不能访问protected成员基类的成员可以是虚拟的,成员可以由继承它的类重写。派生类可以提供成员的其他实现代码。这种实现并不会删除原来的代码,仍可以再累中访问... 阅读全文
posted @ 2015-04-27 18:28 The_shy 阅读(132) 评论(0) 推荐(0)
摘要:TYPE(类型)1.C#中所有变量和对象都需要明确地声明其类型,除了关键字var是隐含类型。2.只能将值域小的变量赋值给值域大的变量,虽然反过来赋值也能编译通过,但可能会出bug。Escape characters(转义字符)Char Meaning\' Single quote \" Double... 阅读全文
posted @ 2015-04-27 12:23 The_shy 阅读(121) 评论(0) 推荐(0)
摘要:听了第一节C#课后,做了一次简单的UI界面的尝试,主要代码和结果如下点击“hello”button后显示“Hello World” ,并隐藏button 阅读全文
posted @ 2015-04-27 11:13 The_shy 阅读(146) 评论(0) 推荐(0)
摘要:Regular expressions一.关键概念1.The result of applying a regular expression to a string is one of the following: To find out whether the string matches the... 阅读全文
posted @ 2015-04-20 18:11 The_shy 阅读(170) 评论(1) 推荐(0)
摘要:本文将简单介绍C#调用exe的方法。在C#中,通过Process类来进行进程操作。 Process类在System.Diagnostics包中。示例一using System.Diagnostics;Process p = Process.Start("notepad.exe");p.WaitFor... 阅读全文
posted @ 2015-04-07 19:55 The_shy 阅读(1920) 评论(0) 推荐(0)