コード例 #1
0
        private Pop3Command(Pop3CommandType commandType, bool listings, string commandText)
        {
            this.type = commandType;
            BufferBuilder bufferBuilder = new BufferBuilder(commandText.Length);

            try
            {
                bufferBuilder.Append(commandText);
            }
            catch (ArgumentException innerException)
            {
                throw new Pop3InvalidCommandException("All characters in the string must be in the range 0x00 - 0xff.", innerException);
            }
            this.commandBytes = bufferBuilder.GetBuffer();
            this.listings     = listings;
        }
コード例 #2
0
 private Pop3Command(Pop3CommandType commandType, bool listings, string formatString, params object[] formatStringArguments) : this(commandType, listings, string.Format(CultureInfo.InvariantCulture, formatString, formatStringArguments))
 {
 }