Initial Commit

This commit is contained in:
2026-03-16 14:38:46 +02:00
commit b8f7327a21
2327 changed files with 253610 additions and 0 deletions
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace Zenject
{
// The given InjectContext values here should always be non-null
public interface IProvider
{
bool TypeVariesBasedOnMemberType
{
get;
}
bool IsCached
{
get;
}
Type GetInstanceType(InjectContext context);
// Return an instance which might be not yet injected to.
// injectAction should handle the actual injection
// This way, providers that call CreateInstance() can store the instance immediately,
// and then return that if something gets created during injection that refers back
// to the newly created instance
void GetAllInstancesWithInjectSplit(
InjectContext context, List<TypeValuePair> args, out Action injectAction, List<object> instances);
}
}