悲剧呀,</summary>后面多了一个尖括号……
nnhy authored at 2012-03-30 11:00:56
895.00 B
X
using System.Net;

namespace NewLife.Net.Stun
{
    /// <summary>Stun结果</summary>
    public class StunResult
    {
        private StunNetType _Type;
        /// <summary>类型</summary>
        public StunNetType Type { get { return _Type; } set { _Type = value; } }

        private IPEndPoint _Public;
        /// <summary>公共地址</summary>
        public IPEndPoint Public { get { return _Public; } set { _Public = value; } }

        /// <summary>实例化Stun结果</summary>
        /// <param name="type"></param>
        /// <param name="ep"></param>
        public StunResult(StunNetType type, IPEndPoint ep) { Type = type; Public = ep; }

        /// <summary>已重载。</summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.Format("{0} {1}", Type, Public);
        }
    }
}