{"action":"opened","issue":{"url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/496","repository_url":"https://api.github.com/repos/JoshClose/CsvHelper","labels_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/496/comments","events_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/496/events","html_url":"https://github.com/JoshClose/CsvHelper/issues/496","id":141090092,"number":496,"title":"Always use the default converter when passing Types","user":{"login":"GrantHoffman","id":12550520,"avatar_url":"https://avatars.githubusercontent.com/u/12550520?v=3","gravatar_id":"","url":"https://api.github.com/users/GrantHoffman","html_url":"https://github.com/GrantHoffman","followers_url":"https://api.github.com/users/GrantHoffman/followers","following_url":"https://api.github.com/users/GrantHoffman/following{/other_user}","gists_url":"https://api.github.com/users/GrantHoffman/gists{/gist_id}","starred_url":"https://api.github.com/users/GrantHoffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrantHoffman/subscriptions","organizations_url":"https://api.github.com/users/GrantHoffman/orgs","repos_url":"https://api.github.com/users/GrantHoffman/repos","events_url":"https://api.github.com/users/GrantHoffman/events{/privacy}","received_events_url":"https://api.github.com/users/GrantHoffman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-15T20:33:11Z","updated_at":"2016-03-15T20:33:11Z","closed_at":null,"body":"Say you have a generator class that is pulling the defaults.\r\nHow do you send the defaults as a string and have the string be resolved to its type to using the converter.\r\n\r\n\r\n\r\npublic class CsvMapGeneratorRule<T> : CsvClassMap<T>\r\n{\r\n    public CsvMapGeneratorRule(TemplateMapBase<T> templateMap)\r\n    {\r\n        foreach (var mappingInfo in templateMap.MappingInfos)\r\n        {\r\n            this.Map(mappingInfo.Property)\r\n                .Index(mappingInfo.Index)\r\n                .Default(mappingInfo.Default);\r\n        }\r\n    }\r\n}\r\n\r\nPerhaps adding a DefaultFromString() function which will send then default to be converted"}}