小编Alb*_*che的帖子

如何删除System.Drawing.Graphics的默认构造函数?

当我尝试创建Graphics的对象时,为什么以下不起作用?

System.Drawing.Graphics graphicsObj = new System.Drawing.Graphics();
Run Code Online (Sandbox Code Playgroud)

(我知道我可以创建一个private System.Windows.Forms.Panel Obj;,然后CreateGraphics()如果我希望它可以工作)

我试图为Graphics找到一个自定义构造函数,但我找不到一个.微软在哪里定义它,或者它是如何阻止它的?

.net c# graphics constructor default-constructor

7
推荐指数
1
解决办法
4046
查看次数

Git Missing Commit错误

我们最近更改了存储库的位置,我们发现文件中缺少数月的提交.我们使用Git的旧服务器已关闭,因此无法从那里恢复提交.

这是我得到的错误:

$ git fsck --full
broken link from commit 58ba71d080b1814420bce09c4e505b323fd9cb58
to commit a2e2bde363032b7609616a3152fe048cc5c83715

missing commit a2e2bde363032b7609616a3152fe048cc5c83715

$ git fsck --full
broken link from commit 58ba71d080b1814420bce09c4e505b323fd9cb58
to commit a2e2bde363032b7609616a3152fe048cc5c83715

missing commit a2e2bde363032b7609616a3152fe048cc5c83715

$ git fsck --full
broken link from commit 58ba71d080b1814420bce09c4e505b323fd9cb58
to commit a2e2bde363032b7609616a3152fe048cc5c83715

missing commit a2e2bde363032b7609616a3152fe048cc5c83715

有什么办法可以解决这个问题吗?谢谢!

git

5
推荐指数
1
解决办法
7088
查看次数

标签 统计

.net ×1

c# ×1

constructor ×1

default-constructor ×1

git ×1

graphics ×1