Time of Update: 2015-12-17
標籤:DateTime dt = DateTime.Now;Label1.Text = dt.ToString();//2005-11-5 13:21:25Label2.Text = dt.ToFileTime().ToString();//127756416859912816Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816Label4.Text = dt.ToLocalTime().ToString();//200
Time of Update: 2015-12-14
標籤:static void Main(string[] args) { XmlDocument xDoc = new XmlDocument(); xDoc.Load("../../App.config");//載入xml檔案 XmlNode xNode; XmlElement xElem1; XmlElement xElem2; xNode =
Time of Update: 2015-12-20
標籤:======================== 感謝“不忘初心”大神的分享========================原博地址:http://www.cnblogs.com/IT-Bear/archive/2012/01/16/2323609.html================================================================= [code]phpcode:/// <summary>
Time of Update: 2015-12-20
標籤: 意圖 0 適用性 1 結構 2 實現 3 效果 4 參考
Time of Update: 2015-12-14
標籤:ref 關鍵字通過引用(而非值)傳遞參數。通過引用傳遞的效果是,對所調用方法中的參數進行的任何更改都反映在調用方法中。例如,如果調用方傳遞本地Variant 運算式或數組元素訪問運算式,所調用方法會將對象替換為 ref
Time of Update: 2015-12-17
標籤:今天開始重溫C語言程式設計,琢磨了一下用命令列編譯C代碼。 步驟如下:1、先用記事本編寫如下所示的代碼,並另存新檔hello.cpp,假設其儲存路徑為D:CPratice\hello.c。#include
Time of Update: 2015-12-14
標籤:Windows Service這一塊並不複雜,但是注意事項太多了,網上資料也很淩亂,偶爾自己寫也會丟三落四的。所以本文也就產生了,本文不會寫複雜的東西,完全以基礎應用的需求來寫,所以不會對Windows Service寫很深入。本文介紹了如何用C#建立、安裝、啟動、監控、卸載簡單的Windows Service 的內容步驟和注意事項。一、建立一個Windows Service1)建立Windows
Time of Update: 2015-12-13
標籤://from是發送的郵箱地址//to是指發送的目標郵箱///subject是標題///body是發送的內容,注意相關詞彙可能會導致當垃圾郵箱處理private void SendMessage(string from, string to, string subject, string body) { System.Net.Mail.MailMessage mm = null; SmtpClient Client;
Time of Update: 2015-12-13
標籤:using System;using System.Collections;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Reflection;using System.Web;using System.Web.UI;using&
Time of Update: 2015-12-13
標籤:廠址:http://www.cnblogs.com/bignjl/archive/2011/01/14/1935645.html格式說明符 說明 樣本 輸出 C 貨幣 2.5.ToString("C") ¥2.50 D 十進位數 25.ToString("D5") 00025
Time of Update: 2015-12-12
標籤:DataColumn有的需要等級Type構造類型的參數,如以下: // // 摘要: // 使用指定列名稱和資料類型初始化 System.Data.DataColumn 類的新執行個體。 // // 參數: // columnName: // 一個字串,它表示要建立的列的名稱。假設設定為 null 或Null 字元串
Time of Update: 2015-12-08
標籤:在web開發中通過(?)方式在瀏覽器地址欄傳值時,瀏覽器是通過“&”來區分參數個數及取值的,比如:http://localhost/default.aspx?param1=10&5 ¶m2=20假如說,我想取值param1中的10和5,然而因為&這個逸出字元的存在,會導致參數接受錯誤。 針對於逸出字元,可以這樣理解:1. 它是一種特殊的字元常量,一般是用‘\‘加數字(8進位)來表示;2.
Time of Update: 2015-12-12
標籤:字母轉換成數字byte[] array = new byte[1]; //定義一組數組arrayarray = System.Text.Encoding.ASCII.GetBytes(string); //string轉換的字母int asciicode = (short)(array[0]); ASCII碼 = Convert.ToString(asciicode);
Time of Update: 2015-12-10
標籤: /// <summary> /// 根據時間擷取時間狀態 /// </summary> /// <param name="dt"></param> /// <returns></returns> public string GetTimeInfo(DateTime dt) { TimeSpan
Time of Update: 2015-12-08
標籤: 這篇是各種資料類型,各種參數總結。有點亂。沒來得及整理。有空會再整理下。還有這是搜集的各路資料和自己的一些總結。謝謝各路大神!!1.理論概念 C#資料類型結構圖:電腦分為5個區1.常量區2.靜態區 (static修飾的)3.代碼區 運行方法的時候會找到代碼區4.棧區(實值型別,定義一個變數入棧開闢空間,定義完自動釋放空間)int a = 10,此處a為值5.堆區(數組中,new稱為運算子,new的時候在堆中開闢空間)int[] a = new int[];
Time of Update: 2015-12-09
標籤:1. public static bool ReferenceEquals(object left, object right)Object.ReferenceEquals()在兩個變數引用到同一個對象時返回true,也就是兩個變數具有相同的對象ID。不管比較的類型是參考型別還是實值型別的,這個方法總是檢測對象ID,而不是對象內容。string a = "test";string b = "test";if (Object.ReferenceEquals(a, b)){
Time of Update: 2015-12-20
標籤:html5 svg animate cc flash cc 今天開啟Flash CS6發現Adobe公司推送的重磅新聞,Flash CS6的下一個版本將更名為Animate CC而不是此前流傳的Flash
Time of Update: 2015-12-12
標籤:代理(delegate)
Time of Update: 2015-12-11
標籤:
Time of Update: 2015-12-08
標籤: ------- ios培訓、 android培訓、java培訓、期待與您交流!