gpt4 book ai didi

c# - 必须声明主体,因为它未标记为抽象或外部 (CS0501)

转载 作者:行者123 更新时间:2023-11-30 15:41:03 25 4
gpt4 key购买 nike

<分区>

我是 C# 的新手,不知道它的语法。但我对其他语言(Java、C++)略知一二。我下载了GLWidget project并尝试构建它。但是,我在这些行(使用 { get; set; })收到错误 CS0501:

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;

这个人为什么要这么做?这是否是一个微不足道的错误?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com