在熟悉一個IDE的前幾件事情就是弄懂
怎麼快速建立 getter and setter !!
但是使用Visual Studio卻讓我佈及煩惱...
怎麼getter and setter長這樣?
這強烈衝擊java派的我的心....
在熟悉一個IDE的前幾件事情就是弄懂
怎麼快速建立 getter and setter !!
但是使用Visual Studio卻讓我佈及煩惱...
怎麼getter and setter長這樣?
這強烈衝擊java派的我的心....
從Java跳槽到C#時隔一日,引發了一大堆疑問 (感覺是參考書太弱!)
Then I got lots of confusions on what the hell does IDisposable value !!?
在C#中,跟Java一樣使用GC清除未使用到的參考,
因此也確定了不需要自行將變數設為NULL (除非你想他更快被清除)
然而學到了 IDisposable 介面 是一個能夠讓
物件能在 using 陳述式中 自動被dispose (也就是會把資源釋放掉)