private static void CheckValueFormat(string value, string parameterName) { // Empty string is a valid cookie value if (value == null) { throw new ArgumentNullException(parameterName); } }