Time of Update: 2016-10-21
標籤:view object類 開發 container 方法 var 運行時 game 精通 Linq是在.Net3.5之後首次引入的,這種查詢語言簡單易學,可用範圍非常廣泛在學著之前,一直用
Time of Update: 2016-10-21
標籤:維護 log 進程 ext etc 相關 hid font ram 在.net的WinForm程式中,如果是直接起動的Form作為主視窗,那麼這個主視窗是不能關閉的,因為它維護了一個Win
Time of Update: 2016-10-21
標籤:mode name img png [] empty close mod tsig 本片主要解決“type=file時是可行的,type=image時不知為何總是提示【系統繁忙】”的問題。
Time of Update: 2016-10-21
標籤:引導 folder rip pat 電腦 流程 reg registry local 一、前言
Time of Update: 2016-10-21
標籤:初始化 closed ica cat lock pen rac class public //猴子摘了好多好多桃子,一天需要吃掉總數的2/3,
Time of Update: 2016-10-21
標籤: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 泛型對型別參數的推斷{ class Program { public static void genericMtthod<T>( T t1, T t2) { T
Time of Update: 2016-10-21
標籤:1 code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Reflection; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace ConsoleApplication10 9 {10 class Program11 {12 static
Time of Update: 2016-10-21
標籤:1 code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleApplication10 8 { 9 class Program10 {11 static void Main(string[] args)12
Time of Update: 2016-10-21
標籤:1 code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Reflection; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace ConsoleApplication1 9 {10 class Program11 {12 static
Time of Update: 2016-10-22
標籤:int min div 最大 void result ram [] names 1、冒泡排序namespace _0{ class Program {
Time of Update: 2016-10-18
標籤:XML結構:建立一個mask_list節點,一個procedure節點,將上面的mask_list和procedure節點的所有子孫節點添加到建立的mask_list和procedure節點XmlElement mask_list = xmlDoc.CreateElement("mask_list");XmlElement procedure = xmlDoc.CreateElement("procedure");XmlNode xn_mask_list =
Time of Update: 2016-10-18
標籤: 1 static void Main() 2 { 3 var data = new ObservableCollection<string>(); 4 data.CollectionChanged += Data_CollectionChanged; 5 data.Add("One"); 6 data.Add("Two"); 7 data.Insert(1, "Three"); 8
Time of Update: 2016-10-15
標籤: 用了一個星期把園子裡2016年中有關.net的文章都看了,有些只是大致的看了一下,在看的同時也在記錄一些通用的方法。發現有很多對NPOI的文檔,主要是操作Excl的方法,卻很少有關文件類型的方法。 在項目開發中,一般需要對文檔進行操作,但是使用微軟提供的外掛程式,需要安裝一些程式,並且如果使用wps類的文檔軟體就無法操作了,第三方外掛程式DocX就可以很好的解決這些文檔,結合官方提供的文檔,稍作修改,總結如下的一些方法: &
Time of Update: 2016-10-12
標籤:在有多個表單時,重新整理當前啟用的表單在MainForm.cs中:private void m_reflashtoolStripButton1_Click(object sender, EventArgs e) { Form childFrm = this.ActiveMdiChild;//擷取當前啟用的表單(在前面的表單) if (childFrm != null && childFrm is CBaseForm)
Time of Update: 2016-10-12
標籤:List<T>在C#應用程式中是一種快捷、便於使用的泛型集合類型,使用泛型程式設計為編寫物件導向程式增加了極大的效率和靈活性,不會強行對實值型別進行裝箱和拆箱,或對參考型別進行向下強制類型轉換。補充說明:在決定使用IList<T> 還是使用ArrayList類(兩者具有類似的功能)時,記住IList<T> 類在大多數情況下執行得更好並且是型別安全的。如果對IList<T> 類的類型 T
Time of Update: 2016-10-17
標籤:1 xml檔案 1 <?xml version="1.0" encoding="utf-8" ?> 2 <cultures> 3 <daojia> 4 <book> 5 <name> 道德經</name> 6 <author>老子</author> 7 </book> 8
Time of Update: 2016-10-12
標籤://當有多個表單時,對頂層的視窗進行操作,例如:我們開發具有錄入功能的介面的時候,為了防止提交後的二次(重複)錄入,希望點擊提交按鈕並提示成功後,介面的所有文字框能夠自動清空.NET Framework 類庫 Form.ActiveMdiChild 屬性 擷取當前活動的多重文件介面 (MDI) 子視窗。 命名空間:System.Windows.Forms 程式集:System.Windows.Forms(在 system.windows.forms.dll 中) 文法:public
Time of Update: 2016-10-15
標籤:static void Main(string[] args) { int n,m; while (true) { Console.WriteLine("請輸入要轉換的數和進位,用英文空格分開:"); string s = Console.ReadLine(); string[] str = s.Split(‘ ‘); n =
Time of Update: 2016-10-14
標籤:1,結構是實實值型別(Value Types),而類則是參考型別(Reference Types)。2,結構使用棧儲存(Stack Allocation),而類使用堆儲存(Heap
Time of Update: 2016-10-13
標籤:CLR的執行模型(C#)流程:1.將原始碼編譯成委託代碼——>2.將委託代碼合并成程式集——>3.執行程式集代碼——>4.載入公用語言進行時註:CLR(Common