当我尝试创建Graphics的对象时,为什么以下不起作用?
System.Drawing.Graphics graphicsObj = new System.Drawing.Graphics();
Run Code Online (Sandbox Code Playgroud)
(我知道我可以创建一个private System.Windows.Forms.Panel Obj;,然后CreateGraphics()如果我希望它可以工作)
我试图为Graphics找到一个自定义构造函数,但我找不到一个.微软在哪里定义它,或者它是如何阻止它的?
我们最近更改了存储库的位置,我们发现文件中缺少数月的提交.我们使用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
有什么办法可以解决这个问题吗?谢谢!