tags:

views:

23

answers:

0

Hello,

I know about the $Type but is there anyway to be less specific will this ?

i.e. with the following json,

{"Type":"register","Data":{"FirstName":"Mrt","Address":{"Country":"Australia"}}}

or

{"$Type":"Register","FirstName":"Mrt","Address":{"Country":"Australia"}}

NOTE: the type doesn't have assembly or namespace, it's really just a key for the DI to create the correct object.

I would like to inspect the Type and based on the register, be able to create the type from my own mapping implementation.

Whats the best way to achieve this ?

Cheers,

MrT