Is there possible to get TypeReference
or TypeDefinition
of type assigned to System.Type
variable?
To be more concrete, I'm trying to get String
type from following definition of attribute:
Custom(Value=typeof(String))]
public string SomeProperty {get; set;}