A.數(shù)據(jù)屬性 B.消息屬性 C.棧跟蹤,即可屬性 D.源屬性
為應(yīng)用程序開發(fā)人員上班 Certkiller.com。創(chuàng)建一個(gè)新的類使用的非托管的資源,但其中仍有其他對象對托管資源的引用。 您希望新類的用戶能夠不再需要的類的實(shí)例時(shí),顯式地釋放資源。 下一步你該怎么辦?() 選擇您要執(zhí)行的三個(gè)操作。每一個(gè)正確的答案顯示唯一的完整的解決方案的一部分。
A.定義的現(xiàn)有的類,以便使它從WeakReference類繼承。 B.定義的現(xiàn)有的類,以便它適用IDisposable接口。 C.創(chuàng)建新的類析構(gòu)函數(shù),其他釋放托管的資源的對象上調(diào)用方法。 D.創(chuàng)建新類析構(gòu)函數(shù)釋放非托管的資源。 E.創(chuàng)建一種新的處理方法調(diào)用System GC Collect,強(qiáng)制進(jìn)行垃圾回收。 F.創(chuàng)建一個(gè)新的處理方法,釋放非托管的資源,并還呼吁釋放托管的資源的其他對象方法,其中。
You create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.) You create an instance of the Group class. You populate the fields of the instance. When you attempt to serialize the instance by using the Serialize method of the XmlSerializer class, you receive InvalidOperationException. You also receive the following error message: "There was an error generating the XML document."You need to modify the code segment so that you can successfully serialize instances of the Group class by using the XmlSerializer class. You also need to ensure that the XML output contains an element for all public fields in the class hierarchy. What should you do?()
A.A B.B C.C D.D