finalizer 中文意思是什麼
finalizer
解釋
收尾-
Do not use a static mutable state in a finalizer
不要在終結器中使用靜態可變狀態。 -
Handle can still be resurrected in the finalizer
句柄仍可以在終結器中再次出現。 -
Upon allocation, the finalizer and its call graph are prepared in advance
進行分配時,終結器及其調用關系圖是事先準備好的。 -
Assuming they do not have a finalizer but rely on
后,假定類沒有終結器而是依賴 -
A finalizer for the filestream class will cause
將會出現一個不可捕獲的異常。 -
The finalizer thread and all threads controlled by
控制的所有線程都是mta 。 -
The thread on which the finalizer is run is unspecified
運行終結器的線程是未指定的。 -
This prevents the finalizer from reclaiming other objects
這會阻止終結器回收其他對象。 -
Guarantees that garbage collection will execute the finalizer
保證垃圾回收會執行終結器。 -
The finalizer does not release any unmanaged resources
。終結器不會釋放任何非託管資源。 -
Proxy has a finalizer, it calls the finalizer on the
代理具有終結程序,但它仍通過使用反射調用 -
If a server application were to open a new database connection for each request and then just drop it on the floor when done, the database would likely reach its capacity long before the no - longer - needed connections were closed by the finalizer
如果服務器應用程序為每個請求都打開一個新的數據庫連接,然後用完之後就不管了,那麼數據庫遠遠未到終結器關閉不再需要的連接,就會到達它的最高容量。 -
Class, the common language runtime guarantees that all critical finalization code will be given the opportunity to execute, provided the finalizer follows the rules for a cer, even in situations where the clr forcibly unloads an application domain or aborts a thread
類派生的類中,公共語言運行庫( clr )保證所有關鍵終止代碼都有機會執行,即使是在clr強行卸載應用程序域或中止線程的情況中(只要終結器遵守cer的規則) 。 -
From a performance viewpoint, it is better not to implement a finalizer in a servicedcomponent derived class and instead place this logic in the disposeobject method
從提高性能的角度出發,最好不要在servicedcomponent派生類中實現終結程序,而應當將此邏輯放在disposeobject方法中。 -
Do not use thread local storage, managed or native, to store state on the finalizer thread
不要使用線程本地存儲區(託管或本機)來存儲終結器線程的狀態。 -
Do not need to provide a finalizer, this is sometimes necessary for example, to flush out file buffers or to write some data back into memory
的大多數類不需要提供終結器,但有時這是必要的(例如,清空文件緩沖區或將某些數據寫回內存) 。 -
Class do not need to provide a finalizer, this is sometimes necessary for example, to flush out file buffers or to write some data back into memory
類的大多數類都不需要提供終結器,但有時這是必要的(例如,清空文件緩沖區或將某些數據寫回內存) 。 -
Most classes that currently have a finalizer to simply clean up an operating system handle will not need the finalizer anymore
與當前使用該句柄的方法之間的爭用條件來防止安全性問題的出現。 -
Can run a standard finalizer to flush out existing buffered data
類中的數據)可運行標準終結器以刷新現有的緩沖數據。 -
Recycling can clean up resources on the finalizer thread, it is still important to put cleanup code in the correct place
回收可以清理終結器線程的資源,將清除代碼位置在正確的位置仍很重要。
分享友人