假如您現(xiàn)在正在開發(fā)一個服務器應用程序。而這個應用程序需要在網(wǎng)絡上傳遞一些敏感信息,您創(chuàng)建了一個X509Certificate類的對象叫做certificate和一個TcpClient的對象叫做client。您需要創(chuàng)建一個SslStream流使用TransportLayerSecurity1.0protocol協(xié)議進行通信。那么您會使用下面的哪個代碼片段?()
A.A B.B C.C D.D
You are developing a method to call a COM component.You need to use declarative security to explicitly request the runtime to perform a full stack walk. You must ensure that all callers have the required level of trust for COM interop before the callers execute your method. Which attribute should you place on the method?()
假設您現(xiàn)在在寫一個方法用以壓縮一個字節(jié)數(shù)組,這個方法定義了一個形式參數(shù)叫document,您需要壓縮他,那么下面的代碼您會選擇哪個?()