c#-流构建器(需要引用对象) [英] c# - Stream builder (Object reference is required)
本文介绍了c#-流构建器(需要引用对象)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨-我收到以下错误消息:
Hi - I am receiving following error :
我该如何解决?
MBH
推荐答案
这些字段在调用构造函数之前已初始化.因此,您最好将stringBufferSize声明为static,或者可以在类构造函数中初始化字段stringBuffer.
The fields get initialized before the constructor is called. So you should better declare stringBufferSize as static or you could initialize your field stringBuffer within the class constructor.
wizend
这篇关于c#-流构建器(需要引用对象)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文