ich versuche, neue abstrakte Klasse declarateXna und System-Namespace Konflikt
using System;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.Xna.Framework.Graphics;
abstract public class GraphicsDeviceControl : Control
{
//....
protected abstract void Update();
}
, aber wenn ich es kompiliert hatte ich diese Warnung bekam:
'WinFormsContentLoading.GraphicsDeviceControl.Update()' verbirgt geerbtes Mitglied 'System.Windows.Forms.Control.Update()'. Verwenden Sie das neue Schlüsselwort, wenn das Verstecken beabsichtigt war.
aber ich möchte Microsoft.Xna Namespace verwenden, nicht-System
Im Microscaft.Xna-Namespace gibt es kein Control. Es ist unklar, was Sie eigentlich erreichen möchten - entweder möchten Sie XNA-Inhalt in Windows Forms Control zeichnen oder Updat eof Microsoft.Xna.Framework.Game/Microsoft.Xna.Framework .GameComponent implementieren. –