{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/3668","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/3668/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/3668/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/3668/events","html_url":"https://github.com/aspnet/Mvc/issues/3668","id":119619692,"number":3668,"title":"Remove TextWriter.ToString from RazorPage","user":{"login":"pranavkm","id":174281,"avatar_url":"https://avatars.githubusercontent.com/u/174281?v=3","gravatar_id":"","url":"https://api.github.com/users/pranavkm","html_url":"https://github.com/pranavkm","followers_url":"https://api.github.com/users/pranavkm/followers","following_url":"https://api.github.com/users/pranavkm/following{/other_user}","gists_url":"https://api.github.com/users/pranavkm/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavkm/subscriptions","organizations_url":"https://api.github.com/users/pranavkm/orgs","repos_url":"https://api.github.com/users/pranavkm/repos","events_url":"https://api.github.com/users/pranavkm/events{/privacy}","received_events_url":"https://api.github.com/users/pranavkm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-01T01:24:29Z","updated_at":"2015-12-01T01:24:29Z","closed_at":null,"body":"Based on discussion here - https://github.com/aspnet/Mvc/pull/3664#discussion_r46205297\r\n\r\nThere's code in RazorPage (https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Razor/RazorPage.cs#L267) where we invoke `ToString` on a `TextWriter` instance. This is likely to succeed only with specific kinds of `TextWriter`s such as `StringWriter`. We should remove this behavior."}}