{"id":19775328,"url":"https://github.com/tallesl/net-object","last_synced_at":"2025-10-19T02:50:29.063Z","repository":{"id":34663474,"uuid":"38635037","full_name":"tallesl/net-Object","owner":"tallesl","description":"Automagically parses (with reflection) an Dictionary/DataRow/DataTable to a custom class of yours.","archived":false,"fork":false,"pushed_at":"2019-07-24T18:37:53.000Z","size":93,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T04:08:06.751Z","etag":null,"topics":["csharp","datarow","datatable","dictionary","dot-net","nuget","object","parse","reflection"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tallesl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-06T17:37:49.000Z","updated_at":"2023-03-08T13:18:39.000Z","dependencies_parsed_at":"2022-09-15T11:40:17.268Z","dependency_job_id":null,"html_url":"https://github.com/tallesl/net-Object","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tallesl","download_url":"https://codeload.github.com/tallesl/net-Object/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251769192,"owners_count":21640859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","datarow","datatable","dictionary","dot-net","nuget","object","parse","reflection"],"created_at":"2024-11-12T05:15:40.651Z","updated_at":"2025-10-19T02:50:28.969Z","avatar_url":"https://github.com/tallesl.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Object\r\n\r\n[![][build-img]][build]\r\n[![][nuget-img]][nuget]\r\n\r\n[build]:     https://ci.appveyor.com/project/TallesL/net-object\r\n[build-img]: https://ci.appveyor.com/api/projects/status/github/tallesl/net-object?svg=true\r\n[nuget]:     https://www.nuget.org/packages/Object\r\n[nuget-img]: https://badge.fury.io/nu/Object.svg\r\n\r\nAutomagically parses (with reflection) an DataRow/DataTable/Dictionary to a custom class of yours.\r\n\r\n## [DataRow]/[DataTable]\r\n\r\n```cs\r\nusing ObjectLibrary;\r\n\r\nvar users = dataTable.ToObject\u003cUser\u003e();\r\n```\r\n\r\n[DataRow]:   https://msdn.microsoft.com/library/System.Data.DataRow\r\n[DataTable]: https://msdn.microsoft.com/library/System.Data.DataTable\r\n\r\n## [IDictionary]\u0026lt;string, object\u0026gt;\r\n\r\n```cs\r\nusing ObjectLibrary;\r\n\r\nvar userData = new Dictionary\u003cstring, object\u003e { { \"Name\", \"John Smith\" }, { \"Birth\", new DateTime(1970, 1, 1) } };\r\nvar userObject = userData.ToObject\u003cUser\u003e();\r\n```\r\n\r\n[IDictionary]: https://msdn.microsoft.com/library/System.Collections.IDictionary\r\n\r\n## [IDictionary]\u0026lt;string, string\u0026gt;\r\n\r\n```cs\r\nusing ObjectLibrary;\r\n\r\nvar userData = new Dictionary\u003cstring, string\u003e { { \"Name\", \"John Smith\" }, { \"Birth\", \"1970-01-01\" } };\r\nvar userObject = userData.ToObject\u003cUser\u003e();\r\n\r\nuserData[\"Birth\"] = \"Not a date!\";\r\nvar shitHappens = userData.ToObject\u003cUser\u003e(); // throws CouldNotParseException\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftallesl%2Fnet-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftallesl%2Fnet-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftallesl%2Fnet-object/lists"}