Guest User

ClojureCLR .NET 3.5 with-open trouble finding .Dispose

a guest
Nov 17th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user=> (import 'Microsoft.Win32.Registry)
  2. Microsoft.Win32.Registry
  3. user=> (import 'Microsoft.Win32.RegistryKey)
  4. Microsoft.Win32.RegistryKey
  5. user=> (with-open [hkey (Registry/CurrentUser)] )
  6. MissingMethodException Cannot find instance field/property/member name Dispose
  7. .CallSite.Target (:0)
  8. user=> (with-open [^IDisposable hkey (Registry/CurrentUser)] )
  9. nil
  10. user=> *clojure-version*
  11. {:interim true, :major 1, :minor 5, :incremental 0, :qualifier "master"}
  12. user=>
Advertisement
Add Comment
Please, Sign In to add comment