Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.1.0-preview-530" />

 Constants

static class Constants
using Stashbox.Attributes; using System; using System.Linq.Expressions; using System.Reflection; using System.Runtime.CompilerServices; namespace Stashbox.Utils { internal static class Constants { public static readonly Type ResolutionScopeType = typeof(IResolutionScope); public static readonly Type ServiceProviderType = typeof(IServiceProvider); public static readonly Type ResolverType = typeof(IDependencyResolver); public static readonly ParameterExpression ResolutionScopeParameter = ResolutionScopeType.AsParameter("scope"); public static readonly MethodInfo AddDisposalMethod = ResolutionScopeType.GetSingleMethod("AddDisposableTracking", false); public static readonly MethodInfo GetOrAddScopedItemMethod = ResolutionScopeType.GetSingleMethod("GetOrAddScopedItem", false); public static readonly MethodInfo AddWithFinalizerMethod = ResolutionScopeType.GetSingleMethod("AddWithFinalizer", false); public static readonly MethodInfo GetScopedInstanceMethod = ResolutionScopeType.GetSingleMethod("GetScopedInstanceOrDefault", false); public static readonly MethodInfo CheckRuntimeCircularDependencyBarrierMethod = ResolutionScopeType.GetSingleMethod("CheckRuntimeCircularDependencyBarrier", false); public static readonly MethodInfo ResetRuntimetCircularDependencyBarrierMethod = ResolutionScopeType.GetSingleMethod("ResetRuntimeCircularDependencyBarrier", false); public static readonly MethodInfo BeginScopeMethod = ResolverType.GetSingleMethod("BeginScope", false); public static readonly Type DisposableType = typeof(IDisposable); public static readonly Type FuncType = typeof(Func<>); public static readonly Type[] EmptyTypes = new Type[0]; public static readonly Type ObjectType = typeof(object); public static readonly ConstructorInfo ObjectConstructor = ObjectType.GetConstructor(EmptyTypes); public static readonly Type CompositionRootType = typeof(ICompositionRoot); public static readonly Type DependencyAttributeType = typeof(Stashbox.Attributes.DependencyAttribute); public static readonly Type InjectionAttributeType = typeof(InjectionMethodAttribute); public const MethodImplOptions Inline = MethodImplOptions.AggressiveInlining; public const byte DelegatePlaceholder = 0; } }