Using typeof : Typeof : Operator C# Examples


C# Examples » Operator » Typeof »

 

Using typeof





You can use the "typeof" operator to obtain information about a type.
The typeof operator returns a System.Type object for a given type.
The typeof operator has this general form:




    
typeof(type)
    
   
  
   

type is the type being obtained.
The System.Type object returned encapsulates the information associated with type.



HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Operator
» Typeof