determine complex type from a primitive type using reflection

Posted by Nilotpal Das on Stack Overflow See other posts from Stack Overflow or by Nilotpal Das
Published on 2010-05-12T04:26:09Z Indexed on 2010/05/12 5:24 UTC
Read the original article Hit count: 1175

Filed under:
|
|
|
|

I am writing a tool where I need to reflect upon methods and if the parameters of the methods are complex type, then I need to certain type of actions such as instantiating them etc.

Now I saw the IsPrimitive property in the Type variable. However, it shows string and decimal as complex types, which technically isn't incorrect. However what I really want is to be able to distinguish developer created class types from system defined data types.

Is there any way that I can do this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about reflection