{"id":19775206,"url":"https://github.com/tallesl/net-xpando","last_synced_at":"2025-07-23T02:33:28.414Z","repository":{"id":36678864,"uuid":"40985294","full_name":"tallesl/net-Xpando","owner":"tallesl","description":"Utilities for dealing with ExpandoObject.","archived":false,"fork":false,"pushed_at":"2018-01-02T20:33:43.000Z","size":319,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T05:38:25.363Z","etag":null,"topics":["csharp","dot-net","dynamic","expandoobject","nuget"],"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-08-18T17:00:35.000Z","updated_at":"2024-04-09T08:31:46.000Z","dependencies_parsed_at":"2022-09-25T01:33:10.579Z","dependency_job_id":null,"html_url":"https://github.com/tallesl/net-Xpando","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/tallesl/net-Xpando","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Xpando","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Xpando/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Xpando/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Xpando/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tallesl","download_url":"https://codeload.github.com/tallesl/net-Xpando/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tallesl%2Fnet-Xpando/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266606611,"owners_count":23955317,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","dot-net","dynamic","expandoobject","nuget"],"created_at":"2024-11-12T05:15:17.956Z","updated_at":"2025-07-23T02:33:28.395Z","avatar_url":"https://github.com/tallesl.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"#xpando\"\u003e\n        \u003cimg alt=\"logo\" src=\"Assets/logo-200x200.png\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n# Xpando\n\n[![][build-img]][build]\n[![][nuget-img]][nuget]\n\nUtilities for dealing with [ExpandoObject].\n\n[build]:         https://ci.appveyor.com/project/TallesL/net-xpando\n[build-img]:     https://ci.appveyor.com/api/projects/status/github/tallesl/net-xpando?svg=true\n[nuget]:         https://www.nuget.org/packages/Xpando\n[nuget-img]:     https://badge.fury.io/nu/Xpando.svg\n[ExpandoObject]: https://msdn.microsoft.com/library/System.Dynamic.ExpandoObject\n\n## Converting an object\n\n```cs\nusing XpandoLibrary;\n\nvar boringUser = new { Name =\"John Smith\" };\ndynamic coolUser = boringUser.ToExpando(); // does the magic\n\ncoolUser.NickName = \"Johny\";\n```\n\n## Checking if has any property\n\n```cs\nusing XpandoLibrary;\n\nvar expando = new ExpandoObject();\ndynamic dynamic = expando;\n\nexpando.Empty(); // True\n\ndynamic.Foo = \"Bar\";\n\nexpando.Empty(); // False\n```\n\n## Checking if has a specific property\n\n```cs\nusing XpandoLibrary;\n\nvar expando = new ExpandoObject();\ndynamic dynamic = expando;\n\ndynamic.Foo = \"Bar\";\n\nexpando.HasProperty(\"Foo\"); // True\nexpando.HasProperty(\"Qux\"); // False\n```\n\n## Removing a property\n\n```cs\nusing XpandoLibrary;\n\nvar expando = new ExpandoObject();\ndynamic dynamic = expando;\n\ndynamic.Foo = \"Bar\";           // creates the property\nexpando.RemoveProperty(\"Foo\"); // removes the property\n```\n\n## Making a copy\n\n```cs\nusing XpandoLibrary;\n\nvar expando = new ExpandoObject();\n\n// (some initialization with nested ExpandoObject)\n\nexpando.ShallowCopy(); // creates a shallow copy of object (doesn't copy nested ExpandoObject)\nexpando.DeepCopy();    // creates a deep copy of object (copies nested ExpandoObject)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftallesl%2Fnet-xpando","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftallesl%2Fnet-xpando","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftallesl%2Fnet-xpando/lists"}