子凌的精靈夜語

Just another WordPress.com weblog

[程式]C#的??語法

在c#中有個 ?? 語法還不錯用
a = b ?? c;
如果b是null的話
a就會等於c

善用的話會蠻方便的






—–

九月 27, 2006 - Posted by | 寫程式

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.