{"id":22538431,"url":"https://github.com/shuttle/shuttle.core.reflection","last_synced_at":"2025-04-09T20:22:53.308Z","repository":{"id":56150412,"uuid":"115553653","full_name":"Shuttle/Shuttle.Core.Reflection","owner":"Shuttle","description":"Reflection infrastructure components.","archived":false,"fork":false,"pushed_at":"2024-04-30T11:06:49.000Z","size":106,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-05T11:15:19.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shuttle.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,"publiccode":null,"codemeta":null}},"created_at":"2017-12-27T20:06:07.000Z","updated_at":"2024-04-30T11:04:47.000Z","dependencies_parsed_at":"2024-01-13T12:41:14.090Z","dependency_job_id":"92ca4c8d-2dbe-4eaa-97be-b14935c27d2d","html_url":"https://github.com/Shuttle/Shuttle.Core.Reflection","commit_stats":{"total_commits":30,"total_committers":3,"mean_commits":10.0,"dds":"0.16666666666666663","last_synced_commit":"1a8ab1e146aaeaa229ed56803bea5e6a4cc36d9e"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Core.Reflection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Core.Reflection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Core.Reflection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shuttle%2FShuttle.Core.Reflection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shuttle","download_url":"https://codeload.github.com/Shuttle/Shuttle.Core.Reflection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104924,"owners_count":21048423,"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":[],"created_at":"2024-12-07T11:12:01.502Z","updated_at":"2025-04-09T20:22:53.298Z","avatar_url":"https://github.com/Shuttle.png","language":"C#","readme":"# Shuttle.Core.Reflection\n\n```\nPM\u003e Install-Package Shuttle.Core.Reflection\n```\n\nProvides various methods to facilitate reflection handling.\n\n## ReflectionService\n\n``` c#\nTask\u003cIEnumerable\u003cAssembly\u003e\u003e GetMatchingAssembliesAsync(Regex regex)\n```\n\nReturns a collection of assemblies that have their file name matching the given `Regex` expression.\n\n``` c#\nTask\u003cIEnumerable\u003cAssembly\u003e\u003e GetRuntimeAssembliesAsync()\n```\n\nReturns a combination of `DependencyContext.Default.GetRuntimeAssemblyNames(Environment.OSVersion.Platform.ToString())` and `AppDomain.CurrentDomain.GetAssemblies()`.\n\n``` c#\nTask\u003cType\u003e GetTypeAsync(string typeName)\n```\n\nAttempts to find the requested type.\n\n``` c#\nTask\u003cIEnumerable\u003cType\u003e\u003e GetTypesCastableToAsync(Type type, Assembly assembly)\n// and these extensions\nTask\u003cIEnumerable\u003cType\u003e\u003e GetTypesCastableToAsync\u003cT\u003e();\nTask\u003cIEnumerable\u003cType\u003e\u003e GetTypesCastableToAsync(Type type);\nTask\u003cIEnumerable\u003cType\u003e\u003e GetTypesCastableToAsync\u003cT\u003e(Assembly assembly);\n```\n\nReturns all the types in the given `assembly` that can be cast to the `type` or `typeof(T)`; if no `assembly` is provided the all assemblies returned by `GetAssembliesAsync()` will be scanned.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuttle%2Fshuttle.core.reflection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuttle%2Fshuttle.core.reflection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuttle%2Fshuttle.core.reflection/lists"}