我正在尝试声明新的抽象类
using System;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.Xna.Framework.Graphics;
abstract public class GraphicsDeviceControl : Control
{
//....
protected abstract void Update();
}
但是当我编译它时,我收到了这个警告:
“WinFormsContentLoading.GraphicsDeviceControl.Update()”隐藏了继承的成员“System.Windows.Forms.Control.Update()”。如果打算隐藏,请使用 new 关键字。
但我想使用 Microsoft.Xna 命名空间,而不是 System