2
StreamResourceInfo streamInfo = Application.GetResourceStream(new uri("UIOnly;component/Images/my_work.png", UriKind.Relative));
if ((streamInfo != null) && (streamInfo.Stream != null))
{
using (var stream = streamInfo.Stream)
{
}
}
上面的代碼執行時,UIOnly.dll被鎖定,直到應用程序退出爲止?關於WPF GetResourceStream
你能澄清你的意思是DLL被「鎖定」嗎? – 2011-01-07 04:48:58