<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MyBlog_笑著流淚II &#187; C#.NET</title>
	<atom:link href="http://blog.havenlin.org/archives/category/cnet/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.havenlin.org</link>
	<description>歡迎使用非Internet Explorer瀏覽器，欣賞這裡的一切資訊！！</description>
	<lastBuildDate>Sat, 09 Jan 2010 09:21:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[C#] VB.net to C#.net How to</title>
		<link>http://blog.havenlin.org/archives/564</link>
		<comments>http://blog.havenlin.org/archives/564#comments</comments>
		<pubDate>Wed, 05 Mar 2008 09:18:51 +0000</pubDate>
		<dc:creator>白目研究生</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://blog.havenlin.org/index.php/archives/564</guid>
		<description><![CDATA[http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
不要再用買的了
因為整個project轉換會有問題
因為整個function轉換會有問題
所以，真的看不懂的在一行一行convert吧
]]></description>
		<wfw:commentRss>http://blog.havenlin.org/archives/564/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.net programer 的好去處</title>
		<link>http://blog.havenlin.org/archives/533</link>
		<comments>http://blog.havenlin.org/archives/533#comments</comments>
		<pubDate>Sat, 23 Feb 2008 07:19:08 +0000</pubDate>
		<dc:creator>白目研究生</dc:creator>
				<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://blog.havenlin.org/index.php/archives/533</guid>
		<description><![CDATA[聽說最近.net framework opensource了
不過，感覺好像也怪怪的
總覺得ref個註解也會被告吧，我想
detial information
.NET Framework Library Source Code now available
怎麼配置請參考
Configuring Visual Studio to Debug .NET Framework Source Code

MSDN提供，那大家的精華有宣洩的去處
http://code.msdn.microsoft.com/
至於，大家要討論的話
http://forums.microsoft.com/MSDN-CHT/default.aspx?ForumGroupID=61&#38;SiteID=14
]]></description>
		<wfw:commentRss>http://blog.havenlin.org/archives/533/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>武男亂講-PDA 運算單元壓力測試軟體</title>
		<link>http://blog.havenlin.org/archives/499</link>
		<comments>http://blog.havenlin.org/archives/499#comments</comments>
		<pubDate>Fri, 15 Feb 2008 18:11:25 +0000</pubDate>
		<dc:creator>白目研究生</dc:creator>
				<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[武男亂講]]></category>

		<guid isPermaLink="false">http://blog.havenlin.org/index.php/archives/499</guid>
		<description><![CDATA[人家在寫拿root的程式
看看自己寫了什麼鳥不拉機的東西&#8230;XDD
不過&#8230;
聽說ASUS的TSD也說寫不出來，由此可證
是懶得寫不是寫不出來
IDE：M$ .net studio 2005(c#)
Framework：V2.0
模擬器：PocketPC 2003
按這裡下載程式執行檔
按這裡下載專案包裝壓縮檔
壓力測試的種類繁多
例如螢幕點擊之類的壓力測試&#8230;
不過，應該有其他的solution可以取代
目前不知道程式放在於本機還是儲存卡上執行比較好 
執行結果如下圖
圖中200為計算位數，按下按鈕開始計算
輸出數據：計算時間，pi value
算到500位數後，模擬器當機
不確定是不是記憶體被用光了的關係


參考資料：http://www.p-nand-q.com/csharp/pi.html
#region Using directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using System.Diagnostics;
#endregion
namespace pda_pi
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string all_value = &#8220;&#8221;;
            int digi = 0;
            digi = Int32.Parse(textBox1.Text);
            TimeSpan ts1 = new TimeSpan(DateTime.Now.Ticks);
            all_value = [...]]]></description>
		<wfw:commentRss>http://blog.havenlin.org/archives/499/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP-SOAPCLIENT How To</title>
		<link>http://blog.havenlin.org/archives/354</link>
		<comments>http://blog.havenlin.org/archives/354#comments</comments>
		<pubDate>Mon, 03 Dec 2007 11:33:05 +0000</pubDate>
		<dc:creator>白目研究生</dc:creator>
				<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[技術文件]]></category>

		<guid isPermaLink="false">http://blog.havenlin.org/index.php/archives/354</guid>
		<description><![CDATA[又是Program
整理一些下一個Project的前置作業
如何使用PHP叫用Web Services
用了SOAPCLIENT的Object
測試環境：
Web Service Server：IIS 5
Web Services：dotNET Web Service Project
Web Server：appserv-win32-2.5.8
PHP Compiler：PHP Version 5.2.0
寫了兩個dotNET的WebMethod測試

[WebMethod]
public int Sum(int a, int b)
{
return a + b;
}
[WebMethod]
public string str(string str)
{
return &#8220;123123123123123&#8243;;
}
接著是PHP部分

&#60;?
$client = new SOAPClient(&#8216;http://127.0.0.1/get/Service.asmx?WSDL&#8217;);
$temp = $client-&#62;str(&#8220;&#8221;);
echo $temp-&#62;strResult;//可以這樣子把叫用的結果印出
//如果需要傳參數運算的話
$Client = new SoapClient(&#8220;http://127.0.0.1/get/Service.asmx?WSDL&#8220;);
$params-&#62;a = 2;
$params-&#62;b = 3;
$objectresult = $client-&#62;sum($params);
$simpleresult = $objectresult-&#62;SumResult;

//針對傳輸資料細節可以用print_r把資料dump出來
print_r ($simpleresult);
$client-&#62;Encrypt(array(&#8220;id&#8221;=&#62;$ID,&#8221;pwd&#8221;=&#62;$PWD)) //或者把參數用ARRAY傳呼叫
//目前測試了三個型態的WebMethod，如果回傳值為DataSet的話可以用下面方式dump 資料，有階層性的概念
$smldata = $regetdata -&#62; GetDataResult; //接收資料
echo $tmp -&#62; NewDataSet -&#62; tbltmp[0] [...]]]></description>
		<wfw:commentRss>http://blog.havenlin.org/archives/354/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>範例將擷取用戶端的表單集合，並將每一個表單的名稱寫入 HTTP 輸出 by C#</title>
		<link>http://blog.havenlin.org/archives/278</link>
		<comments>http://blog.havenlin.org/archives/278#comments</comments>
		<pubDate>Sun, 11 Nov 2007 16:43:32 +0000</pubDate>
		<dc:creator>白目研究生</dc:creator>
				<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[技術文件]]></category>

		<guid isPermaLink="false">http://blog.havenlin.org/index.php/archives/278</guid>
		<description><![CDATA[專案需要，找了個API是這樣子用的
int loop1; NameValueCollection coll;
//Load Form variables into NameValueCollection variable.
coll=Request.Form;
// Get names of all forms into a string array.
String[] arr1 = coll.AllKeys;
for (loop1 = 0; loop1 &#60; arr1.Length; loop1++)  {    Response.Write(&#8220;Form: &#8220; + arr1[loop1] + &#8220;&#60;br&#62;&#8221;); }
MSDN也不知道是怎麼做的
要先using System.Collections.Specialized;也不講

]]></description>
		<wfw:commentRss>http://blog.havenlin.org/archives/278/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB.net convert C# How To</title>
		<link>http://blog.havenlin.org/archives/158</link>
		<comments>http://blog.havenlin.org/archives/158#comments</comments>
		<pubDate>Mon, 17 Sep 2007 11:48:50 +0000</pubDate>
		<dc:creator>白目研究生</dc:creator>
				<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[技術文件]]></category>

		<guid isPermaLink="false">http://blog.havenlin.org/wordpress/index.php/archives/158</guid>
		<description><![CDATA[本文出處：http://blog.csdn.net/deepbluekk/archive/2006/04/09/656377.aspx

以下是n個VB.Net to C# (C# to VB.net)代碼轉換(互換互轉)工具
1.http://www.kamalpatel.net/(最常用的,不過對於16進制的Int不能正常轉換)
線上版:VB.Net =&#62; C#   C#=&#62;VB.Net
離線版:C#=&#62;VB.Net 
2.http://csharpconverter.claritycon.com/(推薦!非常好用的一個，幾乎沒出過太大的問題。)
線上版:C#=&#62;VB.Net
離線版:C#=&#62;VB.Net 
3.http://www.ragingsmurf.com/
線上版:C#=&#62;VB.Net
4.http://aspalliance.com/
線上版:C#=&#62;VB.Net
5.http://developerfusion.com/
線上版:VB.Net =&#62; C#   C#=&#62;VB.Net
6.www.icsharpcode.com中的#develop本身帶有轉換功能
7. C# to VB.NET Translator
http://authors.aspalliance.com/aldotnet/examples/translate.aspx
大家如果有其他的歡迎評論告訴我一聲
最後送一個最管用的：呵呵，看了就知道.
http://www.4guysfromrolla.com/webtech/012702-1.shtml 
]]></description>
		<wfw:commentRss>http://blog.havenlin.org/archives/158/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[C#]  抓取 HTTP 內容在網頁程式中顯示</title>
		<link>http://blog.havenlin.org/archives/157</link>
		<comments>http://blog.havenlin.org/archives/157#comments</comments>
		<pubDate>Mon, 17 Sep 2007 11:45:50 +0000</pubDate>
		<dc:creator>白目研究生</dc:creator>
				<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[技術文件]]></category>

		<guid isPermaLink="false">http://blog.havenlin.org/wordpress/index.php/archives/157</guid>
		<description><![CDATA[本文出處：http://blog.xuite.net/jameswu/net/4437640
在寫SGS的需求文件看到的
把他轉成C#語法
在ASP.NET下相當好用
System.Net.WebClient clientIE = new System.Net.WebClient();
byte[] buffer1 = clientIE.DownloadData(&#8220;http://www.yahoo.com/&#8221;);
string HttpContentText = System.Text.Encoding.ASCII.GetString(buffer1);
this.Response.Write(this.Server.HtmlDecode(HttpContentText));
上面是抓，US的YAHOO所以用ASCII編碼抓的話，是可以正常顯示。
不過中文語系的網頁，不管用UTF8還是ASCII抓都也還是亂碼。
還真麻煩。
]]></description>
		<wfw:commentRss>http://blog.havenlin.org/archives/157/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
