http://msdn.microsoft.com/en-us/library/dd264739.aspx
msdn的說明。
先講 Optional Arguments(可選參數)應用在Method(方法)上,這功能就是幫你預設好參數(Arguments)值,當有輸入值的時候就聽遵循輸入值的話 ; 當沒有輸入值的時候就直接把預測值塞入。 這東西可以用Overload的寫法實作,但是程式碼將會壟長很多..。
 

imagefish 發表在 痞客邦 留言(0) 人氣()

當初是為了處理兩個Array / List 放在同一個For loop內一起使用,但是不想要改動到既有的程式碼而上網查的。(簡單來說本來功能都寫好了,但是我臨時發現忘記記錄一筆資料,但我List 的 Data struct都設計好了不想再更動他,所以想想有沒有比較偷懶的方法)
.Net 4.0推出這個東西其實還蠻不錯的.....雖然當下看會覺得這個Func真的是一點屁用都沒有,因為一般人不會那麼蠢把都要放到For loop中的資料拆成兩個Array。
不過站在這種奇妙的案例下這Func就蠻有用的...= =++
http://stackoverflow.com/questions/1955766/iterate-two-lists-or-arrays-with-one-foreach-statment-in-c-sharp

imagefish 發表在 痞客邦 留言(0) 人氣()

http://www.dotblogs.com.tw/hatelove/archive/2009/03/06/rookie.aspx


// ASP.NET Page Life Cycle Overview
http://msdn.microsoft.com/en-us/library/ms178472.aspx   

imagefish 發表在 痞客邦 留言(0) 人氣()

http://www.csharpwin.net/ddwstp/net/csharp/5723dr4312.shtml
簡單明瞭不囉嗦。這段威威..~"~ 
 
=====重點整理一下關於綁定自己設定的DataType方法====

imagefish 發表在 痞客邦 留言(0) 人氣()

其實要講這個應該是要先理解一下什麼是 PostBack,經由查資料,這感覺是Asp.net自己創造出來的東西(?)


PostBack簡介
http://www.dotblogs.com.tw/yc421206/archive/2009/04/22/8125.aspx

imagefish 發表在 痞客邦 留言(0) 人氣()

今天找資料的時候突然找到的,覺得很有趣,記錄一下。
http://33tsai.blogspot.tw/2008/01/ping_30.html
http://www.wretch.cc/blog/joylin9096/13592748

imagefish 發表在 痞客邦 留言(0) 人氣()

http://www.cnblogs.com/Flyear/archive/2009/04/28/1445349.html
http://www.dotblogs.com.tw/pou/archive/2010/12/25/20368.aspx
其實我最希望可以研究出一個單純只利用Asp.net內建Func.就可以達到的撰寫方法..........不過好像有點困難... ~"~
吼這很麻煩耶,當初本來就是為了簡單所以才採行這個設計的,沒想到遇到另外的麻煩事情....= =。

imagefish 發表在 痞客邦 留言(0) 人氣()

回家在整理。
http://stackoverflow.com/questions/5766573/in-c-what-is-the-best-way-to-compare-2-integer-lists-array
 
額外新增,List用法介紹。

imagefish 發表在 痞客邦 留言(0) 人氣()

回家在看~
 
http://big5.webasp.net/article/15/14889.htm
http://msdn.microsoft.com/en-us/library/ff650316.aspx

imagefish 發表在 痞客邦 留言(0) 人氣()

// Main function
class MainFunc
{
static void Main(string[] args)
{
string[] animals = new string[] { "Koala", "Spider", "Elephant" };
wherepractice prac = new wherepractice();
// get animals of StartName is "S"
prac.detailWhere(animals);
// get amimals of StartName is "E"
prac.lambdaWhere(animals);
// as above result, but different implement.
prac.delegateImpleWhere(animals);
Console.ReadLine();
return;
}
}

imagefish 發表在 痞客邦 留言(0) 人氣()

http://www.csharpwin.net/ddwstp/net/csharp/5723dr4312.shtml
簡單明瞭不囉嗦。這段威威..~"~ 
 
=====重點整理一下關於綁定自己設定的DataType方法====

imagefish 發表在 痞客邦 留言(0) 人氣()

// Main function
class MainFunc
{
static void Main(string[] args)
{
string[] animals = new string[] { "Koala", "Spider", "Elephant" };
wherepractice prac = new wherepractice();
// get animals of StartName is "S"
prac.detailWhere(animals);
// get amimals of StartName is "E"
prac.lambdaWhere(animals);
// as above result, but different implement.
prac.delegateImpleWhere(animals);
Console.ReadLine();
return;
}
}

imagefish 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。