◆wpf◆-畫面執行緒委託方法
dispatcher.invoke(new action(serviceprovider.configure));
◆wpf◆-模型資料繫結方法1
viewmodelbase.cs
viewmodel.csusing system;
using system.componentmodel;
using system.collections.generic;
using system.linq;
using system.text;
namespace view}}
}
mainwindow.xamlusing system;
using system.componentmodel;
using system.collections.generic;
using system.linq;
using system.text;
using system.windows.media.imaging;
namespace view
public asyncobservablecollectionpicturefiles
set}}}
◆檔案◆-zip檔案
◆檔案◆-檔案確認string destfile = path.combine(path.gettemppath(), "error_report.zip");
if (file.exists(destfile))
file.delete(destfile);
using (var zip = new zipfile(destfile))
if (file.exists(destfile))
file.delete(destfile);
◆xml◆-xml分析工具
◆系統◆-windows位址字串連線xmlserializer myserializer = new xmlserializer(typeof (branding));
filestream myfilestream = new filestream(filename, filemode.open,fileaccess.read,fileshare.read);
branding = (branding) myserializer.deserialize(myfilestream);
myfilestream.close();
path.combine(「c:」,"soft", "set.xml");
◆系統◆-應用程式程序取得
process.getcurrentprocess().processname;
◆系統◆-關閉當前應用
◆執行緒◆-task.factory執行緒呼叫方法
◆webservice◆-開發測試發布問題解決
問題:當通過瀏覽器訪問介面時提示的錯誤。
解決方法:
在控制面板->程式和功能->啟用和關閉windows功能如下選項啟用後,解決問題。
C 多執行緒技術總結(非同步)
我這裡針對現有的c 多執行緒技術進行乙個彙總,一是複習,二是方便索引,文章部份知識點 於網路,非本人原創。一 並行 非同步 1.system.threading.tasks命名空間下的 tpl 1.1 parallel.invoke 並行執行多個任務,主線程等待並行執行完畢後才開始續續執行。示例 s...
技術 試題 總結
58同城 1.10只老鼠10只杯檢測1000瓶酒中的毒酒 題目 現有1000瓶葡萄酒,只知道其中有一瓶是毒酒,但不知道是哪瓶,喝一點點毒酒,就會在一周之內發病死亡。試用最少的老鼠在一周時間試出哪瓶酒有毒。solution 1 編號 給葡萄酒標上數字 1 1000 給老滑鼠上 0 9 相應給杯標上 0...
虛擬技術總結
支援虛擬技術的處理器有乙個廣義指令集 extra instruction set 代號為virtual machine extensions,或者簡稱vmx。vmx為cpu帶來了10條新的虛擬指令 vmptrld vmptrst vmclear vmread vmwrite vmcall vmlau...