What's the typeof operator in c# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's the typeof operator in c#

What's the typeof operator in c# and how to use

22nd Nov 2020, 11:05 AM
Martin Jefferson
Martin Jefferson - avatar
3 Answers
0
Benjamin Jürgens please answer simpler I don't know what's in and where it works
22nd Nov 2020, 11:12 AM
Martin Jefferson
Martin Jefferson - avatar
+ 1
It gives the System.Type of a type. Use it like this: Type type = tipeof(int); For more information please do a simple web search
22nd Nov 2020, 11:10 AM
Benjamin Jürgens
Benjamin Jürgens - avatar
22nd Nov 2020, 11:19 AM
Benjamin Jürgens
Benjamin Jürgens - avatar