daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // (Do this up front somewhere else.)
  2. var closeMethod = typeof(OpenNETCF.Phone.Sim.Sim).GetMethod("Close");
  3.  
  4. // (Do this many times.)
  5. using (var disposer = new Disposer<OpenNETCF.Phone.Sim.Sim>(OpenNETCF.Phone.Sim.Sim(), closeMethod))
  6. {
  7.     // Use the 'disposer.Object' property ...
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top