.........................................................................................................................1
Practice Questions for Exam 70-536................................................................ 1
Contents.......................................................................................................... 1
Developing Applications That Use System Types and Collections............. 1
Implementing Service Processes, Threading, and Application Domains in
You are creating a custom class that allocates large blocks of memory. Instead of waiting for the runtime to automatically free the resources, you want developers who use your class to be able to free resources on demand when an instance of the class is no longer needed. Which interface should you implement?
a) To spawn an additional thread to provide parallel processing
b) To copy member methods and properties from an existing class
c) To enable an assembly to respond to an event that occurs within a class
d) To provide identical member methods and properties from multiple related
// C#
interface ISampleInterface
{
{
int i = 5;
return i;
// C#
interface ISampleInterface
{
Interface IAsset
Private j As Integer = 5
Function SampleMethod() as Integer
// C#
interface ISampleInterface
{
// C#
interface ISampleInterface(int j)
{