itu*_*tun 3 c# compiler-errors automatic-properties
我是C#的新手,不知道它的语法.但我对其他语言(Java,C++)有所了解.我下载了GLWidget项目并尝试构建它.但是我在这些行上有一个错误CS0501(带{ get; set; }):
namespace Gtk
{
[ToolboxItem(true)]
public class GLWidget : DrawingArea, IDisposable
{
IGraphicsContext graphicsContext;
static int graphicsContextCount;
/// <summary>Use a single buffer versus a double buffer.</summary>
[Browsable(true)]
public bool SingleBuffer { get; set; }
/// <summary>Color Buffer Bits-Per-Pixel</summary>
public int ColorBPP { get; set; }
/// <summary>Accumulation Buffer Bits-Per-Pixel</summary>
public int AccumulatorBPP { get; set; }
/// <summary>Depth Buffer Bits-Per-Pixel</summary>
public int DepthBPP { get; set; }
/// <summary>Stencil Buffer Bits-Per-Pixel</summary>
public int StencilBPP { get; set; }
/// <summary>Number of samples</summary>
public int Samples { get; set; }
/// <summary>Indicates if steropic renderering is enabled</summary>
public bool Stereo { get; set; }
IWindowInfo windowInfo;
Run Code Online (Sandbox Code Playgroud)
为什么这个人这样做?这是一个微不足道的错误吗?