Skip to content

Instantly share code, notes, and snippets.

@ctaggart
Created October 29, 2014 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctaggart/30555d3faf94b4d0ff98 to your computer and use it in GitHub Desktop.
Save ctaggart/30555d3faf94b4d0ff98 to your computer and use it in GitHub Desktop.
type AppDomain with
member x.LocalStore
with get() =
let f = x.GetType().GetField("_LocalStore", BindingFlags.NonPublic ||| BindingFlags.Instance)
if f = null then Dictionary<string, obj[]>()
else f.GetValue x :?> Dictionary<string, obj[]>
let printAppDomainObjectCache() =
for KeyValue(k,v) in AppDomain.CurrentDomain.LocalStore do
printfn "%s" k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment