{"id":22206742,"url":"https://github.com/usercode/fastpropertyaccessor","last_synced_at":"2026-04-30T00:34:41.652Z","repository":{"id":47460256,"uuid":"516138095","full_name":"usercode/FastPropertyAccessor","owner":"usercode","description":"Fast C# property accessor without using reflection","archived":false,"fork":false,"pushed_at":"2022-12-29T20:31:31.000Z","size":30,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T04:25:54.584Z","etag":null,"topics":["csharp","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usercode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-20T21:22:25.000Z","updated_at":"2022-10-03T15:14:13.000Z","dependencies_parsed_at":"2023-01-31T09:46:01.922Z","dependency_job_id":null,"html_url":"https://github.com/usercode/FastPropertyAccessor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FFastPropertyAccessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FFastPropertyAccessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FFastPropertyAccessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FFastPropertyAccessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usercode","download_url":"https://codeload.github.com/usercode/FastPropertyAccessor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394784,"owners_count":20608123,"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","dotnet"],"created_at":"2024-12-02T18:17:46.846Z","updated_at":"2026-04-30T00:34:36.618Z","avatar_url":"https://github.com/usercode.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastPropertyAccessor\nFast property accessor without using reflection\n\n## Sample\n\n```csharp\nModel model = new Model();\nmodel.Amount = 100;\n\n//name property info\nPropertyInfo pi = model.GetType().GetProperty(nameof(Model.Amount));\n\n//name property accessor\nPropertyAccessor accessor = PropertyAccessor.Get(pi);\n\n//get value\nint amount = (int)accessor.GetValue(model);\n\n//set value\naccessor.SetValue(model, 200);\n\n//prevent boxing/unboxing for primitive types\nint amount2 = accessor.GetInt32Value(model);\n\naccessor.SetInt32Value(model, 200);\n\n//use TypeAccessor\nTypeAccessor typeAccessor = TypeAccessor.Get(model.GetType());\n\ntypeAccessor[model, \"Amount\"] = 100;\n\n//enumerate properties\nforeach(PropertyAccessor property in typeAccessor)\n{\n   //access to property\n}\n```\n\n## Benchmark\n\n\u003cimg width=\"647\" alt=\"benchmark\" src=\"https://user-images.githubusercontent.com/2958488/189353223-0ecca2a4-f069-4eef-ae0c-18cf0610d577.png\"\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusercode%2Ffastpropertyaccessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusercode%2Ffastpropertyaccessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusercode%2Ffastpropertyaccessor/lists"}