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; }
private Pop3Command(Pop3CommandType commandType, bool listings, string formatString, params object[] formatStringArguments) : this(commandType, listings, string.Format(CultureInfo.InvariantCulture, formatString, formatStringArguments)) { }