Suppose You are developing an application named ExamSApp by using Visual C# .NET and Visual Basic
.NET. The application will use functions form a DLL written in unmanaged code. One function
requires the calling application to allocate unmanaged memory, fill it with data, and pass the
address of the memory to the function. On returning from the function, the calling application must
deallocate the unmanaged memory.
You need to decide how your application will handle unmanaged memory.
What should you do?
A. Use a byte array.
B. Use the methods of the Marshal class.
C. Use the methods of the MemoryStream class.
D. Derive a new class from the Stream class, and override the allocation methods.

Submitted by: Administrator
B. Use the methods of the Marshal class.
Submitted by: Administrator

Read Online MCSD.NET - 70-320 Exam Job Interview Questions And Answers