G
Guest
Hi all,
Please give me the differences between typeof and GetType
bye
Please give me the differences between typeof and GetType
bye
Nicholas Paldino said:srkvellanki,
GetType is a call that is made at runtime on an instance of an object.
typeof() is resolved to a call at runtime, but loads the type from the
token for the type. They probably resolve to the same call, it's just
that GetType requires an instance. If I didn't need the instance, I would
use typeof.
Hope this helps.