摘要:
有人问“为什么不能继承System.Guid中NewGuid方法呢”,答案是很简单的,因为System.Guid是结构而不是类。比如定义如下结构和类publicstructMyType{publicintMyInteger;}publicclassClass1:MyType{}这段代码将抛出编译错误内容为"Class1: cannot inherit from sealed... 阅读全文
posted @ 2004-09-14 21:28
张锋
阅读(3076)
评论(0)
推荐(0)
浙公网安备 33010602011771号