Renci.SshNet.Messages.Message.ToString C# (CSharp) Method

ToString() public method

Returns a string that represents this instance.
public ToString ( ) : string
return string
        public override string ToString()
        {
            var messageAttribute = GetType().GetCustomAttributes<MessageAttribute>(true).SingleOrDefault();

            if (messageAttribute == null)
                return string.Format(CultureInfo.CurrentCulture, "'{0}' without Message attribute.", GetType().FullName);

            return messageAttribute.Name;
        }