{"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":22,"created_at":"2015-02-19T16:41:14Z","updated_at":"2015-02-19T16:41:19Z","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/75086206","html_url":"https://github.com/michaeledgar/protobuf-net/issues/58#issuecomment-75086206","issue_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/58","id":75086206,"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:18Z","updated_at":"2015-02-19T16:41:18Z","body":"```\nMarc, \n\nAm I understanding correctly that ProtoBuf-net builds up a cache of data \nstructures,\netc? Is there any way to clear these structures and would it cause any side \neffects?\n```\n\n-----\nOriginal comment by `dandreds...@gmail.com` on 2 Jun 2009 at 10:32"}}