【发布时间】:2015-07-13 08:43:06
【问题描述】:
当我尝试启动我的 c# 程序时遇到错误(请不要因为我的编程不太好,所以如果你能用非常简单的术语写出答案,那将不胜感激)
byte[] buffer = BitConverter.GetBytes(Convert.ToInt32(value));
PS3.SetMemory(offset, buffer);
这是错误的图片 - http://prntscr.com/7s2uq9
错误显示“名称空间 'BitConverter' 中不存在类型或名称空间名称 'GetBytes'(您是否缺少程序集引用?)”
我已经尝试过这些
- 重写代码
- 重写顶部的命名空间引用 (http://prntscr.com/7s2vf6)
我的“使用参考的东西是” -
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PS3Lib;
using MetroFramework.Forms;
using MetroFramework;
using SimdiBo2;
【问题讨论】:
-
您可以将错误消息作为文本而不是链接包含在其中吗?
-
好的,给我一分钟 :)
-
请不要回滚我的编辑,因为它会从您的问题中删除无用的绒毛。
-
也请放入您的
using语句和命名空间。 -
这些代码的命名空间和类是什么?
标签: c# bitconverter