robokins.IRC.Message.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            var buf = new StringBuilder(Client.BufferSize);
            buf.Append(':');
            buf.Append(User.ToString());
            buf.Append(' ');
            buf.Append(Notice ? Client.NOTICE : Client.PRIVMSG);
            buf.Append(' ');
            buf.Append(Target);
            buf.Append(' ');
            buf.Append(':');
            buf.Append(Text);
            if (buf.Length > Client.BufferSize)
                throw new ArgumentOutOfRangeException();
            return buf.ToString();
        }