Create and Use Types Flashcards
Which two classes could you use to retrieve
information on all folders on a local system?
the Directory and DirectoryInfo classes
Which two interfaces should be implemented to use
the foreach construct with a class?
the IEnumerator and IEnumerable interfaces
What is the syntax used to declare a method that has
a generic type parameter?
public void GenericMethod ( T
param )
Which element indicates the CLR versions supported
by an application?
the supportedRuntime element
Which method of the Queue class should you invoke to retrieve and remove the first item?
the Dequeue method
Which interface should you implement for a class to release managed or unmanaged resources?
the IDisposable interface
Which method of the LinkedList class should be invoked to add an object to the beginning?
the AddFirst method
Which method should be implemented when creating a class that implements the IEnumerable interface?
the GetEnumerator method
Which method should you invoke to release the
resources held by an object?
the Dispose method
Which interface should you implement to enable
sorting in a class?
the IComparable interface
Which method of the Queue class should you invoke to add an item to the end?
the Enqueue method
Which class should you use to invoke a method of dynamically loaded type at runtime?
the MethodInfo class
Which method of the FileStream class should you invoke to write an array of bytes to a file?
the Write method
Which class represents a collection of performance counter settings?
the CounterCreationDataCollection class
Which property of the IEnumerator class will return the object available in the current iteration?
the Current property