C#学习
好用又简便的语言
Gene Expression Programming (GEP) in C# and .NET
摘要: Gene Expression Programming (GEP) in C# and .NET
By Mike Gold April 11, 2002
Gene Expression programming (GEP) is a subset of Genetic Algorithms, except it uses genomes whose strings of numbers represent symbols. The string of symbols can further represent equations, grammars, or logical mappings.阅读全文
posted @ 2007-03-24 10:47 Jacky Gao 阅读(664) | 评论 (1) 编辑
C# Language Specification 2.0
摘要: This document describes the new features of the C# language, including Generics, Anonymous Methods, and Partial Types. Please note that this is a draft document intended to give you a preview of the "Whidbey" release of the C# language. 阅读全文
posted @ 2007-02-01 18:30 Jacky Gao 阅读(257) | 评论 (0) 编辑
C++ 和 C# 项目之间差异
摘要: 继承:在 C++ 中,类和结构实际上是相同的,而在 C# 中,它们很不一样。C# 类可以实现任意数量的接口,但只能从一个基类继承。而且,C# 结构不支持继承,也不支持显式默认构造函数(默认情况下提供一个)。阅读全文
posted @ 2007-02-01 17:20 Jacky Gao 阅读(1069) | 评论 (2) 编辑
msdn上的“索引器”(indexer)示例
摘要: PS:调试的时候在“命令行参数”属性中,输入“..\..\Test.txt”,便可以将与源代码(indexer.cs)所在目录下的Test.txt文件中的字节反转。或者将编译好的exe在cmd中输入“indexer Test.txt”也可。
这个范例也提供了按照字节访问文件的方法(类FileByteArray),收藏收藏了, 阅读全文
posted @ 2007-02-01 16:50 Jacky Gao 阅读(101) | 评论 (1) 编辑
使用Indexer(索引器)小结
摘要: 索引器允许按照与数组相同的方式对类、结构或接口进行索引。
要声明类或结构上的索引器,要使用 this 关键字,如下例所示:阅读全文
posted @ 2007-02-01 16:15 Jacky Gao 阅读(129) | 评论 (0) 编辑