| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | using System.Globalization;namespace Renci.SshNet.Messages.Connection{    /// <summary>    /// Base class for all channel specific SSH messages.    /// </summary>    public abstract class ChannelMessage : Message    {        /// <summary>        /// Gets or sets the local channel number.        /// </summary>        /// <value>        /// The local channel number.        /// </value>        public uint LocalChannelNumber { get; protected set; }        /// <summary>        /// Called when type specific data need to be loaded.        /// </summary>        protected override void LoadData()        {            LocalChannelNumber = ReadUInt32();        }        /// <summary>        /// Called when type specific data need to be saved.        /// </summary>        protected override void SaveData()        {            Write(LocalChannelNumber);        }        /// <summary>        /// Returns a <see cref="System.String"/> that represents this instance.        /// </summary>        /// <returns>        /// A <see cref="System.String"/> that represents this instance.        /// </returns>        public override string ToString()        {            return string.Format(CultureInfo.CurrentCulture, "{0} : #{1}", base.ToString(), LocalChannelNumber);        }    }}
 |