在 vs 2017 中,本地 Git 存储库下有一个选项 -> 右键单击“删除存储库”。
在 vs 2019 中没有这样的菜单:
当然我可以手动删除存储库,我只是想知道是否有任何方法可以在 Visual Studio 中做到这一点。感谢您的帮助!
我有一个类似于以下代码,但更为复杂:
IEnumerable<SomeObject> GetObjects()
{
if (m_SomeObjectCollection == null)
{
yield break;
}
foreach(SomeObject object in m_SomeObjectCollection)
{
yield return object;
}
GetOtherObjects();
}
IEnumerable<SomeObject> GetOtherObjects()
{
...
}
Run Code Online (Sandbox Code Playgroud)
我刚刚意识到,GetOtherObjects()方法不能被称为从OtherObjects()方法。有没有错误,但迭代停止。有什么办法解决吗?