-
-
Save ctaggart/30555d3faf94b4d0ff98 to your computer and use it in GitHub Desktop.
List all custom data stored in AppDomain http://stackoverflow.com/questions/13763605/list-all-custom-data-stored-in-appdomain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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