System.IO.StreamReader不包含ReadWord的定义 [英] System.IO.StreamReader does not contain a definition for ReadWord
本文介绍了System.IO.StreamReader不包含ReadWord的定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
System.IO.StreamReader不包含ReadWord的定义,也没有扩展方法;可以找到ReadWord接受System.IO.StreamReader类型的第一个参数(你是否缺少using指令或程序集引用?)
System.IO.StreamReader does not contain a definition for ReadWord and no extension method ;ReadWord accepting a first argument of type System.IO.StreamReader could be found (are you missing a using directive or an assembly reference?)
推荐答案
因为它不包含。您可以使用 BinaryReader [ ^ ]用于读取值,但由于 word
不是CLR数据类型,您可以使用 ReadUInt16 [ ^ ]例如。
Because it does not contain. You can use BinaryReader[^] for reading values, but as word
is no CLR datatype, you can use ReadUInt16[^] for example.
这篇关于System.IO.StreamReader不包含ReadWord的定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文