摘要: 许多人认为MemoryStream是无法进行扩展的,其实不然;为了更好了解MemoryStream,我不得不研究MemoryStream的源代码,首先看空构造函数(以下代码均是Reflector Pro版本反射得到):[C#]public MemoryStream() : this(0){}public MemoryStream(int capacity){ if (capacity < 0) { throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString(" 阅读全文
posted @ 2012-02-03 16:02 Serviceboy 阅读(1889) 评论(0) 推荐(0) 编辑