子凌的精靈夜語

Just another WordPress.com weblog

[程式]C#的??語法

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

善用的話會蠻方便的






—–

九月 27, 2006 Posted by | 寫程式 | Leave a Comment

   

Follow

Get every new post delivered to your Inbox.