{"action":"created","issue":{"url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/919","repository_url":"https://api.github.com/repos/JoshClose/CsvHelper","labels_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/919/labels{/name}","comments_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/919/comments","events_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/919/events","html_url":"https://github.com/JoshClose/CsvHelper/issues/919","id":296122795,"number":919,"title":"Bug in WriteHeader<T>()","user":{"login":"kabua","id":8376646,"avatar_url":"https://avatars3.githubusercontent.com/u/8376646?v=4","gravatar_id":"","url":"https://api.github.com/users/kabua","html_url":"https://github.com/kabua","followers_url":"https://api.github.com/users/kabua/followers","following_url":"https://api.github.com/users/kabua/following{/other_user}","gists_url":"https://api.github.com/users/kabua/gists{/gist_id}","starred_url":"https://api.github.com/users/kabua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabua/subscriptions","organizations_url":"https://api.github.com/users/kabua/orgs","repos_url":"https://api.github.com/users/kabua/repos","events_url":"https://api.github.com/users/kabua/events{/privacy}","received_events_url":"https://api.github.com/users/kabua/received_events","type":"User","site_admin":false},"labels":[{"id":81846939,"url":"https://api.github.com/repos/JoshClose/CsvHelper/labels/question","name":"question","color":"fbca04","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-10T18:38:20Z","updated_at":"2018-02-14T04:25:51Z","closed_at":null,"author_association":"NONE","body":"Looking at the code to `writer.WriteHeader<MyClass>();` it appears that a call to `NextRecord()` is missing. Therefore the first record is appended to the header line.\r\n\r\n**Expected**:\r\nLn#,StartDateTime,EndDateTime,mId,wId\r\n1,8/22/2005 1:26:00 AM,8/22/2005 1:27:00 AM,506,48026\r\n2,1/17/2005 2:10:00 PM,1/17/2005 2:11:00 PM,1270,4150\r\n\r\n**Actual**:\r\nLn#,StartDateTime,EndDateTime,mId,wId,1,8/22/2005 1:26:00 AM,8/22/2005 1:27:00 AM,506,48026\r\n2,1/17/2005 2:10:00 PM,1/17/2005 2:11:00 PM,1270,4150\r\n\r\n**Note**: that the last property on MyClass is being Ignored. But I don't think this has anything do to with the problem."},"comment":{"url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/comments/365492489","html_url":"https://github.com/JoshClose/CsvHelper/issues/919#issuecomment-365492489","issue_url":"https://api.github.com/repos/JoshClose/CsvHelper/issues/919","id":365492489,"user":{"login":"JoshClose","id":114971,"avatar_url":"https://avatars3.githubusercontent.com/u/114971?v=4","gravatar_id":"","url":"https://api.github.com/users/JoshClose","html_url":"https://github.com/JoshClose","followers_url":"https://api.github.com/users/JoshClose/followers","following_url":"https://api.github.com/users/JoshClose/following{/other_user}","gists_url":"https://api.github.com/users/JoshClose/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshClose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshClose/subscriptions","organizations_url":"https://api.github.com/users/JoshClose/orgs","repos_url":"https://api.github.com/users/JoshClose/repos","events_url":"https://api.github.com/users/JoshClose/events{/privacy}","received_events_url":"https://api.github.com/users/JoshClose/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T04:25:51Z","updated_at":"2018-02-14T04:25:51Z","author_association":"OWNER","body":"A single record at a time, versus all records."}}
{"actor":{"display_login":"JoshClose"}}