Some .NET function require a Type as parameter:

// To get the Type of an object use:
DummyClass dc = new DummyClass();
Type typeFromObject = dc.GetType();

// To get the Type of an class use:
Type typeFromClass = typeof(DummyClass);

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.