Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.5.0-preview-610" />

 Constants

static class Constants
using Stashbox.Attributes; using System; using System.Linq; 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"); public static readonly MethodInfo GetOrAddScopedObjectMethod = ResolutionScopeType.GetSingleMethod("GetOrAddScopedObject"); public static readonly MethodInfo AddWithFinalizerMethod = ResolutionScopeType.GetSingleMethod("AddWithFinalizer"); public static readonly MethodInfo CheckRuntimeCircularDependencyBarrierMethod = ResolutionScopeType.GetSingleMethod("CheckRuntimeCircularDependencyBarrier"); public static readonly MethodInfo ResetRuntimeCircularDependencyBarrierMethod = ResolutionScopeType.GetSingleMethod("ResetRuntimeCircularDependencyBarrier"); public static readonly MethodInfo BeginScopeMethod = ResolverType.GetSingleMethod("BeginScope"); public static readonly Type DisposableType = typeof(IDisposable); public static readonly Type AsyncDisposableType = typeof(IAsyncDisposable); public static readonly Type FuncType = typeof(Func<>); public static readonly Type[] EmptyTypes = EmptyArray<Type>(); public static readonly Type ObjectType = typeof(object); 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; public static T[] EmptyArray<T>() { return InternalArrayHelper<T>.Empty; } } }