Valid 70-483 Dumps shared by ExamDiscuss.com for Helping Passing 70-483 Exam! ExamDiscuss.com now offer the newest 70-483 exam dumps, the ExamDiscuss.com 70-483 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 70-483 dumps with Test Engine here:
You have a class named Customer and a variable named customers. You need to test whether the customers' variable is a generic list of Customer objects. Which line of code should you use?
Correct Answer: D
Explanation/Reference: Explanation: If you want to check if it's an instance of a generic type: return list.GetType().IsGenericType; If you want to check if it's a generic List<T>: return list.GetType().GetGenericTypeDefinition() == typeof(List<>); Reference: Testing if object is of generic type in C# http://stackoverflow.com/questions/982487/testing-if-object-is-of-generic-type-in-c-sharp
Recent Comments (The most recent comments are at the top.)
Recent Comments (The most recent comments are at the top.)
Answer: A
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/is