public WarningHeaderValue(int code, string agent, string text) { CheckCode(code); CheckAgent(agent); HeaderUtilities.CheckValidQuotedString(text, "text"); this.code = code; this.agent = agent; this.text = text; }
public WarningHeaderValue(int code, string agent, string text) { CheckCode(code); CheckAgent(agent); HeaderUtilities.CheckValidQuotedString(text, nameof(text)); _code = code; _agent = agent; _text = text; }
public WarningHeaderValue(int code, string agent, string text, DateTimeOffset date) { CheckCode(code); CheckAgent(agent); HeaderUtilities.CheckValidQuotedString(text, "text"); _code = code; _agent = agent; _text = text; _date = date; }