|
-
September 11th, 2012, 09:47 AM
#1
This was a question for an MCTS exam
You need to retrieve all queued e-mail messages into a collection and ensure type safety. Which code segment should you use to define the signature of the GetQueuedEmailsFromDb() method in the Poller.cs file?
A. private static object[] GetQueuedEmailsFromDb(int queueID)
B. private static ArrayList GetQueuedEmailsFromDb(int queueID)
C. private static EmailMessages GetQueuedEmailsFromDb(int queueID)
D. private static IList<object> GetQueuedEmailsFromDb(int queueID)
Is the answer choice D correct since it has generics parameter ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|