C# BitConverter 错误

C# BitConverter error

我在尝试启动我的 C# 程序时遇到错误(请不要说我不是一个很好的编程人员,所以如果您能用非常简单的术语写出答案,我们将不胜感激)

byte[] buffer = BitConverter.GetBytes(Convert.ToInt32(value));                
PS3.SetMemory(offset, buffer);

这是错误的图片 - http://prntscr.com/7s2uq9

错误显示为"The type or namespace name 'GetBytes' does not exist in the namespace 'BitConverter' (are you missing an assembly reference?) "

这些我都试过了
- 重写代码
- 重写顶部的名称空间引用 (http://prntscr.com/7s2vf6)

我的 "using Reference things are" -

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;

您有一个命名空间 BitConverter,这让编译器感到困惑。重命名您的本地名称空间,或使用 class:

的完全限定名称
System.BitConverter.GetBytes(...);