title: about WPF GetResourceStream
body: <pre><code>StreamResourceInfo streamInfo = Application.GetResourceStream(new uri("UIOnly;component/Images/my_work.png", UriKind.Relative));
  
  if ((streamInfo != null) &amp;&amp; (streamInfo.Stream != null))
  {
        using (var stream = streamInfo.Stream)
        {
  
        }
  }
  </code></pre>
  
  <p>when above code executed, the UIOnly.dll is locked until application exit, why??</p>