{"action":"opened","issue":{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/164","labels_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/164/comments","events_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/164/events","html_url":"https://github.com/michaeledgar/protobuf-net/issues/164","id":58233645,"number":164,"title":"DefaultValue incorrectly handled for non-CLS compliant types","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-19T16:43:19Z","updated_at":"2015-02-19T16:43:19Z","closed_at":null,"body":"```\nWhat steps will reproduce the problem?\n1. Define a protobuf with a field like \"optional fixed64 job_id_source = 10 \n[default = 18446744073709551615];\"\n2. Compile protobuf with protogen\n3. Try to instantiate the proto class\n\nWhat is the expected output? What do you see instead?\n\nThe default value is expected to be \"18446744073709551615\" while the observed \nresult is a floating point number.\n\n\nPlease provide any additional information below.\n\nThe constructors for ComponentModel.DefaultValue do not include ulong, so I've \nattached my solution to this: creating a child DefaultValue attribute.\n\nThe IsValidBinary function also incorrectly classified my .proto files as \nbinary files.\n```\n\n-----\nOriginal issue reported on code.google.com by `AzuiSl...@gmail.com` on 24 Mar 2011 at 5:50\n\nAttachments:\n* [protobuf-clscompliant.patch](https://storage.googleapis.com/google-code-attachments/protobuf-net/issue-164/comment-0/protobuf-clscompliant.patch)\n"}}