TcpClient.Connected 屬性

取得值,指出 TcpClient 的基礎 Socket 是否已連接至遠端主機。

屬性值

如果最近一次的作業是將 Client 通訊端連接至遠端資源,則為 true,否則為 false

Connected 屬性會取得上次 I/O 作業的 Client 通訊端連接狀態。當它傳回 false 時,即表示 Client 通訊端不是從未連接過,就是不再連接了。

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

在虛擬交易峰會倫敦站上,GameDuell聯合創始人Michael Kalkowski向開發者和用戶剖析了facebook排名前25款社交遊戲共有的一些基本元素,而這些可以用以協助其他的開發者提高他們在社交遊戲領域的虛擬成交額度。

  畢竟虛擬交易所創造的收益是社交遊戲目前營收的主要途徑,據Michael Kalkowski分析現在整體遊戲的虛擬營收總值將高達750億美元。

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

inline 這個關鍵字是使用在function前面
inline 所宣告的function並不會有程式本體 

createps 發表在 痞客邦 留言(1) 人氣()

*.lib   和   *.dll   有什麼區別?

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

 string[] 版號 = Application.ProductVersion.Split('.');

 string 版本 = 版號[0] + "." + 版號[1] + "." + 版號[2];

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

You have a TextBox control on your Windows Forms application and need to detect Enter. The TextBox allows your users to type letters into it, and you need to detect when a certain key is pressed. Our solution involves the KeyDown event in our C# Windows Form. We use the KeyDown event for our code.

Using KeyDown event

Open designer and click on TextBox. In the Visual Studio 2008 designer, click on your TextBox control in the form display. You will see the Properties Pane. Next, click on the lightning bolt icon. This icon stands for events. In the event tab, scroll to KeyDown, and double click in the space to the right. New code like that highlighted below will appear.

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

C#:
前面補0的數字字串

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

同步發表於Google Blogger

     Dictionary<string, object> tagDictionary = new Dictionary<string, object>();

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

//=========================================================================================

不取得子目錄的話用這個:

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

整理一下lock的特性。
1.lock的目標並不是物件,而是程式碼區段,只有被lock包覆的程式區段才會有作用。

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