What is the difference between typeof and GetType in C#?

typeof keyword takes the Type itself as an argument and returns the underline Type of the argument whereas GetType() can only be invoked on the instance of the type .

Sizin İçin Seçtik  What are the three types of classes?

Leave a Reply

Your email address will not be published. Required fields are marked *