I am trying to convert a particular IDictionary field of a particular class differently. I was thinking of doing this based on an attribute, but it looks like it wont work. Is it possible to somehow get the CustomAttribute associated with the type in CanConvert?
[CustomAttribute] public IDictionary<string, string> AdditionalData { get; set; } // Custom converter for CustomAttribute public override bool CanConvert(Type objectType) { return System.Attribute.GetCustomAttributes(objectType).Any(v => v is CustomAttribute); }