{"id":25311480,"url":"https://github.com/jason-c-daniels/jcd.reflection","last_synced_at":"2025-04-07T11:33:51.360Z","repository":{"id":46460209,"uuid":"415130143","full_name":"jason-c-daniels/Jcd.Reflection","owner":"jason-c-daniels","description":"A set of reflection helpers.","archived":false,"fork":false,"pushed_at":"2024-03-31T20:25:31.000Z","size":493,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T23:36:26.701Z","etag":null,"topics":["c-sharp","csharp","dotnet","netstandard20","reflection","reflection-library"],"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/jason-c-daniels.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-10-08T21:21:13.000Z","updated_at":"2023-09-09T02:51:25.000Z","dependencies_parsed_at":"2024-03-31T17:40:58.525Z","dependency_job_id":"0a72ef74-69d6-4266-8a51-fa10186606a8","html_url":"https://github.com/jason-c-daniels/Jcd.Reflection","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/jason-c-daniels%2FJcd.Reflection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-c-daniels%2FJcd.Reflection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-c-daniels%2FJcd.Reflection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-c-daniels%2FJcd.Reflection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jason-c-daniels","download_url":"https://codeload.github.com/jason-c-daniels/Jcd.Reflection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247646033,"owners_count":20972579,"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":["c-sharp","csharp","dotnet","netstandard20","reflection","reflection-library"],"created_at":"2025-02-13T14:25:05.090Z","updated_at":"2025-04-07T11:33:51.339Z","avatar_url":"https://github.com/jason-c-daniels.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jcd.Reflection\n\nA _dotnetstandard2.0_ library containing some commonly implemented reflection helpers.\n\nv2.0 has many breaking changes. See the [Version History](#version-history) for details.\n\n## Examples\n\n```csharp\n    internal static class Program\n    {\n        private static void Main()\n        {\n            var c = new TestClass();\n            // set the private field, _field\n            c.SetValue(\"_field\",10);\n\n            // now get its value.\n            var val = (int)c.GetValue(\"_field\");\n            Console.WriteLine(val);\n\n            // Now set a private property with a backing field.\n            c.SetValue(\"PrivateProperty\",20);\n\n            // Now call a private helper method that returns the value from the backing field.\n            val = c.Invoke\u003cint\u003e(\"InternalGetField\");\n            Console.WriteLine(val);\n```\n\n## Special Thanks To\n\n* [Kristian Hellang on GitHub](https://github.com/khellang) for the [Scrutor](https://github.com/khellang/Scrutor)\n  project.\n\nScrutor inspired the technique I'm using for finding implementations of specific types as well as\na couple of other handy utility methods.\n\n## Badges\n\n[![GitHub](https://img.shields.io/github/license/jason-c-daniels/Jcd.Reflection)](https://github.com/jason-c-daniels/Jcd.Reflection/blob/main/LICENSE)\n[![Build status](https://ci.appveyor.com/api/projects/status/sbmfvmr1jmcf1pic?svg=true)](https://ci.appveyor.com/project/jason-c-daniels/jcd-reflection)\n[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/jason-c-daniels/Jcd.Reflection)](https://www.codefactor.io/repository/github/jason-c-daniels/jcd.reflection)\n\n[![MyGet](https://img.shields.io/myget/jason-c-daniels/v/Jcd.Reflection?logo=nuget)](https://www.myget.org/feed/jason-c-daniels/package/nuget/Jcd.Reflection)\n[![Nuget](https://img.shields.io/nuget/v/Jcd.Reflection?logo=nuget)](https://www.nuget.org/packages/Jcd.Reflection)\n\n[![API Docs](https://img.shields.io/badge/Read-The%20API%20Documentation-blue?style=for-the-badge)](https://github.com/jason-c-daniels/Jcd.Reflection/blob/main/docs/Jcd.Reflection.md)\n\n## Version History\n\n### v2.0 Breaking Changes\n\nVersion 2.0 comes with a significant number of breaking changes for advanced use cases. These are listed below\n\n- `ExpandoObjectExtensions` was removed. It wasn't functioning as planned. An overhaul of the approach is needed.\n- All overloads of `FilterMethods` were renamed to `GetMethods`\n- The filter parameter was moved to the last parameter on an overload of `GetMethods` (formerly `FilterMethods`).\n- Renamed `EnumerationSettings` to `Filter` in `MemberInfoEnumerator`, `FieldOrPropertyEnumerator`,\n  and `MethodInfoEnumerator`\n- Moved and renamed type from `MethodInfoEnumerator.Settings` to `MethodInfoFilter`.\n- Moved predefined instances of  `MethodInfoEnumerator.Settings` from `MethodInfoEnumerator` to `MethodInfoFilter`.\n- Moved and renamed type from `MemberInfoEnumerator.Settings` to `MemberInfoFilter`.\n- Moved and renamed type from `FieldOrPropertyEnumerator.Settings` to `FieldOrPropertyInfoFilter`.\n- `MethodInfoFilter`, `MemberInfoFilter`, `FieldOrPropertyInfoFilter` fields are now get-only properties, requiring a\n  call to `new` to create new instances.\n- To facilitate the use of init properties on `MethodInfoFilter`, `MemberInfoFilter`, `FieldOrPropertyInfoFilter`\n  types, a custom `IsExternalInit` is required of target frameworks not supporting it. See this project's source code\n  for an example ([`IsExternalInit.cs`](Jcd.Reflection/IsExternalInit.cs)).\n- Extension methods `GetCusomAttributes` and `HasAttribute` were moved into classes named after the underlying method.\n  This will only break non-extension invocations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjason-c-daniels%2Fjcd.reflection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjason-c-daniels%2Fjcd.reflection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjason-c-daniels%2Fjcd.reflection/lists"}