{"action":"created","issue":{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/58","labels_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/58/comments","events_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/58/events","html_url":"https://github.com/michaeledgar/protobuf-net/issues/58","id":58233250,"number":58,"title":"Serializing empty lists and deserializing empty files","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/Type-Defect","name":"Type-Defect","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/YoucouldeditthesourcetosetSerializerTsreadPropsandwritePropstonullbutyoudneedtodothatformultipleTnotjusttheroot.Unfortunatelytheissueisrelatedtothenumberofgenerictypesinusesoitislikelytocomeback...Imrefactoringittomakealmostnouseofgenericswhichshouldavoid","name":"YoucouldeditthesourcetosetSerializerTsreadPropsandwritePropstonullbutyoudneedtodothatformultipleTnotjusttheroot.Unfortunatelytheissueisrelatedtothenumberofgenerictypesinusesoitislikelytocomeback...Imrefactoringittomakealmostnouseofgenericswhichshouldavoid","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-02-19T16:41:14Z","updated_at":"2015-02-19T16:41:20Z","closed_at":null,"body":"```\nPlease include an e-mail address if this might need a dialogue!\n==============\n\nWhat steps will reproduce the problem?\n1. Create a List<T> that's serializable\n2. Serialize the empty List<T> of any type to a file\n3. Deserialize the empty list from the file\n\nWhat is the expected output? What do you see instead?\nExpected: An empty list\nSeen: Null\n\nRepeating this process eventually causes an InvalidOperation exception.\nAfter the InvalidOperation exception has occured, all files with data in\nthem fall over with the error that only DataContract members, etc can be\ndeserialized, or a TypeException.\n\nWhat version of the product are you using? On what operating system?\nLatest available. Windows Mobile 6.0.\n\nPlease provide any additional information below.\n\n\n```\n\n-----\nOriginal issue reported on code.google.com by `dandreds...@gmail.com` on 27 May 2009 at 10:29"},"comment":{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/comments/75086218","html_url":"https://github.com/michaeledgar/protobuf-net/issues/58#issuecomment-75086218","issue_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/58","id":75086218,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T16:41:20Z","updated_at":"2015-02-19T16:41:20Z","body":"```\nMay be some wiki page needed like \"Migrating from DataContractsSerializer to \nprotobuf\" mentioning such issues and closing this bug as no fix.\nOther content for wiki will be - put Order on all elements or got null.\n```\n\n-----\nOriginal comment by `asd.and....@gmail.com` on 19 Mar 2013 at 12:32"}}