public ViaHeaderValue(string protocolVersion, string receivedBy, string protocolName, string comment) { HeaderUtilities.CheckValidToken(protocolVersion, "protocolVersion"); CheckReceivedBy(receivedBy); if (!string.IsNullOrEmpty(protocolName)) { HeaderUtilities.CheckValidToken(protocolName, "protocolName"); _protocolName = protocolName; } if (!string.IsNullOrEmpty(comment)) { HeaderUtilities.CheckValidComment(comment, "comment"); _comment = comment; } _protocolVersion = protocolVersion; _receivedBy = receivedBy; }
public ProductInfoHeaderValue(string comment) { HeaderUtilities.CheckValidComment(comment, "comment"); _comment = comment; }