versionfield.cs

来自「pureIRCd是一个用c语音写的irc(RFC459)服务,可以给您带来很多的」· CS 代码 · 共 35 行

CS
35
字号
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 + =
减小字号Ctrl + -
显示快捷键?