is there such thing as a user defined function that accepts type identifiers?
methods that have parameters can be called by passing a variable identifier or an expression as an argument.
and then there are built-in 'methods' such as typeof(<type identifier>) which returns a System.Type object, and default(<type identifier>) which returns a null reference for reference types or the default instance of a value type; and what's interesting about them is that unlike traditional methods they aren't called by passing a variable identifier or expression but by passing a type identifier.
is it possible in C# to create 'methods' that work in a similar manner?