silverspecv
Programmer
I'm doing an online training thing for C#, and there is a little review quiz with the question:
Which type of metadata CANNOT be accessed by Reflection?
A) Class
B) Field
C) Operator
D) Any type can be accessed by Reflection
It says A)Class is the correct answer, but I'm not so sure. For my own edification, what CAN it read? The metadata isn't a collection of text strings you program into your objects, is it? Isn't it more of a system generated thing where reflection actually reads the dll or whatever and extracts exposed methods, etc?
So in the above, "operator" doesn't make sense, does it? Operator would mean like a + sign or something? And "field" would only be read as metadata if it was a parameter or return value of a method or an exposed property of an object right? I'm not sure about class, though. When the dll is compiled and is just sitting there, it is effectively a class right? And dll's are exactly what reflection does read, right?
Which type of metadata CANNOT be accessed by Reflection?
A) Class
B) Field
C) Operator
D) Any type can be accessed by Reflection
It says A)Class is the correct answer, but I'm not so sure. For my own edification, what CAN it read? The metadata isn't a collection of text strings you program into your objects, is it? Isn't it more of a system generated thing where reflection actually reads the dll or whatever and extracts exposed methods, etc?
So in the above, "operator" doesn't make sense, does it? Operator would mean like a + sign or something? And "field" would only be read as metadata if it was a parameter or return value of a method or an exposed property of an object right? I'm not sure about class, though. When the dll is compiled and is just sitting there, it is effectively a class right? And dll's are exactly what reflection does read, right?