Get a System.Type C# with Example



Get a System.Type C# with Example

For an instance of a type: 
var theString = "hello"; 
var theType = theString.GetType(); 
From the type itself: 
var theType = typeof(string); 

0 Comment's

Comment Form

Submit Comment