C#????????????????
?????Linux??? ???????[ 2017/4/7 16:52:48 ] ??????????????????? ???
?????????????????C#???????????????????????ο??????????£?
?????????C#?????????????????????????C#??????壬?????????????????????????????Щ???????????????е??????????????????????????????????C#??????????
????C#????????
???????COM???????????????????????C#?????????COM??????????????????????????????磬C#????????????IUnknown??C#??????.NET??????????????????COM???????C#?????????κ???????????????
?????????г?Microsoft????????????System.IDisposable?????????塣IDisposable???????????Dispose()???÷?????????У???????????????
????public interface IDisposable
????{
????void Dispose();
????}
??????????????????????????????????????????????????????????????????κγ??????з???????????£??????????????????????????????????????????
????C#??????в??????????????????????????????????????й?????(??ι?????????????????)?????(????????????Щ???????з??)??????????????????????????????????????????????????????????????????????????????????????????????????????Щ??????.NET ????????????????????VB.NET???????????VB.NET???????????????
????????????л????????????????????η????????????????????????????????????????????????е????????????????????е????????????????η???????????????????
????????IDisposable?????????????????????????????з???Dispose()????????????IDisposable????C#?У???????????????IDisposable??
????class SomeClass : IDisposable
????{
????// this class MUST contain an implementation of the
????// IDisposable.Dispose() method?? otherwise
????// you get a compilation error
????public void Dispose()
????{
????// implementation of Dispose() method
????}
????// rest of class
????}
??????????????У????SomeClass??????IDisposable????????????IDisposable??????????Dispose()???????????????????????????????????IDisposable?????????????????????????????????????IDisposable??Dispose() ???????????????????????????SomeClass???IDisposable?????
????C#????????
????IDisposable????????????????????????????????????????????????????
???????????????????C#?е?foreach???????????foreach????????????????????????????????????? System.Collections.IEnumerable??????????C#??????????IL????????????????????????????е?????????foreach?????????????
????????????????????C#?????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11