What will Julia do to accomplish the task?

Posted by: Pdfprep Category: GSSP-.NET Tags: , ,

Julia works as a Software Developer for Mansoft Inc. She develops an application using Visual Studio .NET. The application uses a method named MyMethod, which is located in an unmanaged DLL. Julia wants MyMethod to require the application to allocate unmanaged memory, fill the data, and pass the memory address to the application. She also wants to ensure that on returning from MyMethod, the application de-allocates the unmanaged memory.

What will Julia do to accomplish the task?
A . Use the methods of the MemoryStream class.
B . Derive a new class from the Stream class, and override the allocation methods.
C . Use the Marshal class.
D . Use a byte array.

Answer: C

Leave a Reply

Your email address will not be published.