📄 suspender.cs
字号:
namespace Imps.Client
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
public struct Suspender : IDisposable
{
private ISuspendable _host;
public Suspender(ISuspendable host)
{
if (host == null)
{
throw new ArgumentNullException("host");
}
this._host = host;
this._host.SuspendUpdate();
}
public void Dispose()
{
this._host.ResumeUpdate();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -