//
using System.Collections;
+using System.Security.Permissions;
using System.Text;
namespace System.Web {
+ // CAS - no InheritanceDemand here as the class is sealed
+ [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class HttpCacheVaryByParams {
bool ignore_parms;
internal HttpCacheVaryByParams ()
{
/* the parameter names are meant to be case insensitive */
+#if NET_2_0
+ parms = new Hashtable (StringComparer.InvariantCultureIgnoreCase);
+#else
parms = new Hashtable(CaseInsensitiveHashCodeProvider.Default,
CaseInsensitiveComparer.Default);
+#endif
}
internal string[] GetParamNames ()
builder.Append ("; ");
}
+ if (builder.Length == 0)
+ return null;
+
return new UnknownResponseHeader ("Vary", builder.ToString());
}