📄 versionfield.cs
字号:
using SDP;
/// <summary>
/// A Version field represents the v= fields contained within the SessionDescription.
/// </summary>
public class VersionField : Field
{
private int version;
/// <summary>
/// Gets the version number.
/// </summary>
public int Version
{
get { return this.version; }
}
/// <summary>
/// Creates a new VersionField.
/// </summary>
/// <param name="value">The value portion of the field.</param>
public VersionField(string value)
: base("v=" + value)
{
this.version = int.Parse(base.Value);
}
/// <summary>
/// Creates a new VersionField.
/// </summary>
/// <param name="version">The version number.</param>
public VersionField(int version) : this(version.ToString()) { }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -