{"id":15785219,"url":"https://github.com/Rick-van-Dam/Mirror","last_synced_at":"2025-10-21T22:30:39.366Z","repository":{"id":114843463,"uuid":"125906692","full_name":"Rick-van-Dam/Mirror","owner":"Rick-van-Dam","description":"Making reflection fast and simple","archived":false,"fork":false,"pushed_at":"2018-03-29T12:10:11.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-10T23:28:26.456Z","etag":null,"topics":["caching","csharp","invokedynamic","netcore","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/Rick-van-Dam.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-19T19:02:00.000Z","updated_at":"2020-11-29T20:40:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"527a5c47-7ed3-4a34-87af-fedd27a3ba6a","html_url":"https://github.com/Rick-van-Dam/Mirror","commit_stats":null,"previous_names":["rick-van-dam/mirror"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rick-van-Dam/Mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rick-van-Dam%2FMirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rick-van-Dam%2FMirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rick-van-Dam%2FMirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rick-van-Dam%2FMirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rick-van-Dam","download_url":"https://codeload.github.com/Rick-van-Dam/Mirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rick-van-Dam%2FMirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280347564,"owners_count":26315362,"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-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["caching","csharp","invokedynamic","netcore","reflection"],"created_at":"2024-10-04T20:21:35.491Z","updated_at":"2025-10-21T22:30:39.119Z","avatar_url":"https://github.com/Rick-van-Dam.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mirror\nHow to do Reflection fast while keeping a simple API.\n\n## What is this?\nThis little library makes it easy to get a `Func` when given only a type, methodname and optionaly some generic parameters. The main advantage of this is that its alot faster to invoke a  a `Func` than it is to use `MethodInfo.Invoke`. Some performance numbers:\n\n\u003cimg width=\"536\" alt=\"2018-03-23 21_44_08-c__windows_system32_cmd exe\" src=\"https://user-images.githubusercontent.com/19387223/37852648-ad39a824-2ee3-11e8-94d7-9415da577c9b.png\"\u003e\n\nAs you can see creating the delegate is expensive but once you have it its alot faster than `MethodInfo.Invoke` and comes within the same order of magnitude as a interface call.\n\n## What is this not?\nA complete reflection framework. Iam trying to keep this as simple as possible and purely focusing on invoking a method using reflection as fast as possible. The main reason this repo exists is for other ppl to learn how to do this but feel free to use the code. I have tried to unit test as many cases as possible to eliminate any bugs.\n\n## Quickstart\nThe code that does the heavy lifting can be found [here](https://github.com/Barsonax/Mirror/blob/master/Mirror/DelegateFactory.cs). To find a example of how to use this you can check [this](https://github.com/Barsonax/Mirror/blob/master/Mirror.Example/Program.cs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRick-van-Dam%2FMirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRick-van-Dam%2FMirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRick-van-Dam%2FMirror/lists"}