Skip to content

Instantly share code, notes, and snippets.

@distractdiverge
Created March 28, 2013 14:58
Show Gist options
  • Save distractdiverge/5263803 to your computer and use it in GitHub Desktop.
Save distractdiverge/5263803 to your computer and use it in GitHub Desktop.
.NET Settings File - JSON
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute(@"{""values"":[""sitecore/data"", ""/sitecore/web/client specific pages}")]
public IEnumerable<string> SiteSearchExclusionPaths
{
get
{
JObject o = JObject.Parse((string) this["SiteSearchExclusionPaths"]);
return (IEnumerable<string>)((JArray)o["values"]).AsEnumerable();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment