Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Last active November 30, 2022 16:12
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
namespace SitefinityWebApp
{
public static class PageOutputCacheStrategyHelper
{
public static bool ContainsKey(this NameValueCollection @this, string key)
{
return @this.Get(key) != null
|| @this.Keys.Cast<string>().Contains(key, StringComparer.OrdinalIgnoreCase);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment