Shuttle.Core.Reflection
12.0.1
dotnet add package Shuttle.Core.Reflection --version 12.0.1
NuGet\Install-Package Shuttle.Core.Reflection -Version 12.0.1
<PackageReference Include="Shuttle.Core.Reflection" Version="12.0.1" />
paket add Shuttle.Core.Reflection --version 12.0.1
#r "nuget: Shuttle.Core.Reflection, 12.0.1"
// Install Shuttle.Core.Reflection as a Cake Addin
#addin nuget:?package=Shuttle.Core.Reflection&version=12.0.1
// Install Shuttle.Core.Reflection as a Cake Tool
#tool nuget:?package=Shuttle.Core.Reflection&version=12.0.1
Shuttle.Core.Reflection
PM> Install-Package Shuttle.Core.Reflection
Provides various methods to facilitate reflection handling.
ReflectionService
string AssemblyPath(Assembly assembly)
Returns the path to the given assembly.
Assembly FindAssemblyNamed(string name)
Returns the Assembly
that has the requested name
; else null
.
Assembly GetAssembly(string assemblyPath)
Returns the requested assembly if found; else null
.
IEnumerable<Assembly> GetAssemblies()
Returns all reachable assemblies.
IEnumerable<Assembly> GetMatchingAssemblies(string regex)
Returns a collection of assemblies that have their file name matching the given Regex
expression.
IEnumerable<Assembly> GetRuntimeAssemblies()
For .Net 4.6+ returns AppDomain.CurrentDomain.GetAssemblies();
. For .Net Core 2.0+ all the DependencyContext.Default.GetRuntimeAssemblyNames(RuntimeEnvironment.GetRuntimeIdentifier())
assembly names are resolved.
Type GetType(string typeName)
Attempts to find the requested type.
IEnumerable<Type> GetTypes(Assembly assembly)
Returns all types in the given assembly
.
IEnumerable<Type> GetTypesAssignableTo<T>();
IEnumerable<Type> GetTypesAssignableTo(Type type);
IEnumerable<Type> GetTypesAssignableTo<T>(Assembly assembly);
IEnumerable<Type> GetTypesAssignableTo(Type type, Assembly assembly);
Returns all the types in the given assembly
that are assignable to the type
or typeof(T)
; if no assembly
is provided the all assemblies returned by GetAssemblies()
will be scanned.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
- Microsoft.Extensions.DependencyModel (>= 7.0.0)
- Shuttle.Core.Contract (>= 11.0.0)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on Shuttle.Core.Reflection:
Package | Downloads |
---|---|
Shuttle.Esb
Contains the core Shuttle.Esb assembly that should always be referenced when building Shuttle.Esb solutions. |
|
Shuttle.Core.Container
Dependency injection container adapter. |
|
Shuttle.Core.Threading
Thread-based processing. |
|
Shuttle.Core.Pipelines
Observable event-based pipelines based broadly on pipes and filters. |
|
Shuttle.Recall
Event sourcing mechanism. |
GitHub repositories
This package is not used by any popular GitHub repositories.