2014年3月11日

【转载】#323 - A Generic Class is a Template for a Class

摘要: A generic classs is a class that takes one or more type parameters, which it then uses in the definition of the class. It can be thought of as a template for a class.1 public class ThingContainer2 {3 private TParam theThing;4 5 public void SetThing(TParam newValue)6 {7 theThing = newValue;... 阅读全文

posted @ 2014-03-11 10:53 yuthreestone 阅读(279) 评论(0) 推荐(0) 编辑

【转载】#303 - Accessibility of Class Members

摘要: Members of a class can have different kinds of accessibility.An accessibility keyword indicates what source code can access the member. The different types of accessibility are:public -All code can access the memberprivate -Only other code in the class can access the memberprotected -Code in this cl 阅读全文

posted @ 2014-03-11 09:36 yuthreestone 阅读(169) 评论(0) 推荐(0) 编辑

2014年3月10日

阅读书单(陆续更新中)

摘要: 2012年度白岩松. 幸福了吗?齐邦媛. 巨流河资中筠. 资中筠自选集系列(坐观天下、闲情记美、不尽之思、士人风骨、感时忧世)杰人天相. 刀尖上的舞者2013年度Randy Pausch. The Last LectureAntonio Mendez. ARGO贾雷德.戴蒙德. 枪炮、病菌与钢铁:人类社会的命运吴军. 数学之美吴军. 浪潮之巅阿朱. 走出软件作坊2014年度吴晓波. 历代经济变革得失梁鸿. 出梁庄记钟志勇. 微信公众平台应用开发实战钱穆. 中国历代政治得失(在读)Stephen Boyd. Convex Optimization (reading) 阅读全文

posted @ 2014-03-10 16:53 yuthreestone 阅读(215) 评论(0) 推荐(0) 编辑

【转载】#274 - Can't Overload if Methods Differ Only by ref and out Modifiers

摘要: You can overload a method in a class, i.e. define two methods with the same name, if the methods have different lists of parameters. The parameter lists must differ in the number of parameters or in their types.For example, we can overload the Dog.Bark method if the parameters differ only in type:1 阅读全文

posted @ 2014-03-10 16:13 yuthreestone 阅读(243) 评论(0) 推荐(0) 编辑

【转载】#273 - Parameter Modifier Summary

摘要: Here's a summary of the different parameter modifiers and how the behavior changes for each, when using them with value-typed and reference-typed variables.No modifier - value typesCopy of value passed to methodMethod can read valueNo modifier - reference typesReference to object passed to metho 阅读全文

posted @ 2014-03-10 15:52 yuthreestone 阅读(191) 评论(0) 推荐(0) 编辑

【转载】#229 - The Core Principles of Object-Oriented Programming

摘要: As an object-oriented language, c# supports the three core principles of object-oriented programming:Encapsulation - Hide implementation details in a class from users of the class, exposing only a public interfaceInheritance - Derive a subclass from a parent class, inheriting data and behavior from 阅读全文

posted @ 2014-03-10 13:55 yuthreestone 阅读(191) 评论(0) 推荐(0) 编辑

2014年2月20日

MATLAB importdata函数返回值类型

摘要: importdata函数是MATLAB中I/O文件操作的一个重要函数。需要注意的是,针对不同的文件内容,importdata函数的返回值类型也有所不同。 MATLAB帮助文档中的详细说明如下: Based on the file format, importdata selects and calls a helper function to read the data. When the h... 阅读全文

posted @ 2014-02-20 12:04 yuthreestone 阅读(1711) 评论(0) 推荐(0) 编辑

导航