Category: RSCG

RSCG – RSCG_CompositeProvider

RSCG – RSCG_CompositeProvider
 
 

name RSCG_CompositeProvider
nuget https://www.nuget.org/packages/RSCG_CompositeProvider/
https://www.nuget.org/packages/RSCG_CompositeProvider_common/
link https://github.com/ignatandrei/RSCG_CompositeProvider
author Ignat Andrei

Generate composite class from interface, using multiple sources

 

This is how you can use RSCG_CompositeProvider .

The code that you start with is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
<Project Sdk="Microsoft.NET.Sdk">
 
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
      <IsPackable>false</IsPackable>
  <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
 
   
  <ItemGroup>
    <PackageReference Include="RSCG_CompositeProvider" Version="2025.218.2100" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
    <PackageReference Include="RSCG_CompositeProvider_Common" Version="2025.218.2100" />
  </ItemGroup>
  <PropertyGroup>
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
</Project>

The code that you will use is

1
2
3
4
5
6
7
8
using CP_Console;
 
IDataValue provider = new DataValue_CP(new DataFromHttp(), new DataFromMemory());
var result = await provider.KeyFromValue("test", false);
Console.WriteLine(result);
DataValue_CP realClass = (DataValue_CP)provider ;
var lastInterface = realClass.lastUsedInterface ?? -1;
Console.WriteLine("value was obtained from " + realClass.Get(lastInterface).Name);
01
02
03
04
05
06
07
08
09
10
11
using RSCG_CompositeProvider_Common;
 
namespace CP_Console;
[CompositeProvider]
public interface IDataValue
{
    public string Name { get; set; }
    public Task<string> KeyFromValue(string key, bool defaultValue);
 
     
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace CP_Console;
 
class DataFromHttp : IDataValue
{
    public string Name { get { return "DataFromHttp"; } set { } }
 
    public async Task<string> KeyFromValue(string key, bool defaultValue)
    {
        var http=new HttpClient();
        var result = await http.GetStringAsync("https://www."+ Guid.NewGuid().ToString()+".com/" + key);
        return result;
    }
}
 
 
class DataFromMemory : IDataValue
{
    public string Name { get { return "DataFromMemory"; } set { } }
 
    public async Task<string> KeyFromValue(string key, bool defaultValue)
    {
        await Task.Delay(1000);
        return $"this is value for {key} from memory";
    }
}

 

The code that is generated is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
// <auto-generated/>
namespace Generated.CP_Console
{
    public static class TheAssemblyInfo
    {
         
        public static readonly System.DateTime DateGeneratedUTC ;
        public const string AssemblyName = "CP_Console";
        public const string GeneratedNameNice = "Bertrand Russell is feeling good-natured in Rothera";
        public const string GeneratedNameSmall = "good-natured-Bertrand Russell";
        public const string GeneratedName = "good-natured-Bertrand Russell-Rothera";
        static TheAssemblyInfo(){
            DateGeneratedUTC = System.DateTime.ParseExact("2025-02-24 14:32:51", "yyyy-MM-dd HH:mm:ss", null);
        }
    }
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// <auto-generated>
    //     This code was generated by a tool :RSCG_CompositeProvider
    //     Runtime Version: Herta Müller is feeling amiable in George Town
    //     DateOfTool : 2025-02-18 17:23:31
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    //</auto-generated>
//------------------------------------------------------------------------------
/// <summary>
    /// This static partial class is a composite provider of IDataValue objects.
    ///</summary>
 
#nullable enable
#pragma warning disable CS8603
#pragma warning disable CS8625
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCode("GeneratorName","2025.10218.11723.131")]
[System.Diagnostics.DebuggerDisplay("Name = {Name} ")]
public partial class DataValue_CP : global::CP_Console.IDataValue
{
public int? lastUsedInterface ;
 
private global::CP_Console.IDataValue[] values;
public DataValue_CP(params global::CP_Console.IDataValue[] values){
this.values=values;
}
public int Count{
get{
return values.Length;
}
}
public global::CP_Console.IDataValue Get(int nr){
    return values[nr];
}
 
 
 
 
        public string Name { get
        {
        lastUsedInterface = null;
        foreach(var item in values){
        lastUsedInterface =(lastUsedInterface ??-1)+1;
        if(item == null)continue;
        try{
        return item.Name;
        }
        catch(Exception ){
        //try with the next one
        }
        }
        throw new System.Collections.Generic.KeyNotFoundException();
        }
        set
        {
        foreach(var item in values){
        if(item == null)continue;
        try{
        item.Name = value;
        }
        catch(Exception ){
        //try with the next one
        }
        }
        }
 
        }
     
            public virtual  async  System.Threading.Tasks.Task<string> KeyFromValue(string key, bool defaultValue) {
                lastUsedInterface =null;
                foreach(var item in values){
                    lastUsedInterface =(lastUsedInterface ??-1)+1;
                    if(item == null)continue;
                    try{
                        var data=   await  item.KeyFromValue(key, defaultValue) ;
                        return data;
                    }
                    catch(Exception ){
                        //try with the next one
                    }
                }
                throw new System.Collections.Generic.KeyNotFoundException();
            }
         
}

Code and pdf at

https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_CompositeProvider

RSCG – DependencyModules.SourceGenerator

RSCG – DependencyModules.SourceGenerator
 
 

name DependencyModules.SourceGenerator
nuget https://www.nuget.org/packages/DependencyModules.SourceGenerator/
https://www.nuget.org/packages/DependencyModules.Runtime/
link https://github.com/ipjohnson/DependencyModules
author Ian Johnson

Generating service dependencies from attributes.

Also,by the author, a more advanced example you will find in the DemoWithTest.zip inside the zip file

 

This is how you can use DependencyModules.SourceGenerator .

The code that you start with is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
<Project Sdk="Microsoft.NET.Sdk">
 
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
    <PropertyGroup>
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
    <ItemGroup>
      <PackageReference Include="DependencyModules.Runtime" Version="1.0.0-RC9074" />
      <PackageReference Include="DependencyModules.SourceGenerator" Version="1.0.0-RC9074" />
     <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.2" />
 
    </ItemGroup>
</Project>

The code that you will use is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
using DependencyModules.Runtime;
using InjectDemo;
using Microsoft.Extensions.DependencyInjection;
 
 
var serviceCollection = new ServiceCollection();
 
serviceCollection.AddModule<MyModule>();
 
var provider = serviceCollection.BuildServiceProvider();
 
var service = provider.GetService<Database>();
 
if(service == null)
    throw new Exception("Service not found");
else
    service.Open();
1
2
3
4
5
6
7
using DependencyModules.Runtime.Attributes;
 
[DependencyModule]
public partial class MyModule
{
 
}
1
2
3
4
5
6
7
namespace InjectDemo
{
    internal interface IDatabase
    {
        public void Open();
    }
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
using DependencyModules.Runtime.Attributes;
 
namespace InjectDemo;
[SingletonService(ServiceType = typeof(Database))]
partial class Database : IDatabase
{
    private readonly IDatabase con;
 
    public Database(IDatabase con)
    {
        this.con = con;
    }
    public void Open()
    {
        Console.WriteLine($"open from database");
        con.Open();
    }
 
}
01
02
03
04
05
06
07
08
09
10
11
12
using DependencyModules.Runtime.Attributes;
 
namespace InjectDemo;
[SingletonService]
public partial class DatabaseCon:IDatabase
{
    public string? Connection { get; set; }
    public void Open()
    {
        Console.WriteLine("open from database con" );
    }
}

 

The code that is generated is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
using DependencyModules.Runtime.Helpers;
using InjectDemo;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
 
public partial class MyModule
{
    private static int moduleField = DependencyRegistry<MyModule>.Add(ModuleDependencies);
 
    private static void ModuleDependencies(IServiceCollection services)
    {
        services.AddSingleton(typeof(Database), typeof(Database));
        services.AddSingleton(typeof(IDatabase), typeof(DatabaseCon));
    }
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using BaseAttribute = System.Attribute;
using DependencyModules.Runtime.Helpers;
using DependencyModules.Runtime.Interfaces;
using Microsoft.Extensions.DependencyInjection;
 
#nullable enable
public partial class MyModule : IDependencyModule
{
 
    static MyModule()
    {
    }
 
    public void PopulateServiceCollection(IServiceCollection services)
    {
        DependencyRegistry<MyModule>.LoadModules(services, this);
    }
 
    void IDependencyModule.InternalApplyServices(IServiceCollection services)
    {
        DependencyRegistry<MyModule>.ApplyServices(services);
    }
 
    public override bool Equals(object? obj)
    {
        return obj is MyModule;
    }
 
    public override int GetHashCode()
    {
        return HashCode.Combine(base.GetHashCode());
    }
 
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly | AttributeTargets.Method | AttributeTargets.Parameter, AllowMultiple = true)]
    public partial class Attribute : BaseAttribute, IDependencyModuleProvider
    {
 
        public IDependencyModule GetModule()
        {
            var newModule = new MyModule();
            return newModule;
        }
    }
}
#nullable disable

Code and pdf at

https://ignatandrei.github.io/RSCG_Examples/v2/docs/DependencyModules.SourceGenerator

RSCG – MockMe

RSCG – MockMe
 
 

name MockMe
nuget https://www.nuget.org/packages/MockMe/
link https://github.com/connorivy/MockMe/
author connorivy

Creating mocks for testing classes

 

This is how you can use MockMe .

The code that you start with is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project Sdk="Microsoft.NET.Sdk">
 
  <PropertyGroup>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
 
    <IsPackable>false</IsPackable>
    <IsTestProject>true</IsTestProject>
  </PropertyGroup>
 
  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
    <PackageReference Include="MockMe" Version="1.1.2" />
    <PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
    <PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
    <PackageReference Include="coverlet.collector" Version="3.2.0" />
  </ItemGroup>
 
  <ItemGroup>
    <ProjectReference Include="..\MockData\MockData.csproj" />
  </ItemGroup>
 
    <PropertyGroup>
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
 
</Project>

The code that you will use is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
using MockMe;
 
namespace TestClock;
 
[TestClass]
public class TestClock
{
    [TestMethod]
    public void TestMyClock()
    {
        var mock = Mock.Me(default(MyClock));
        mock.Setup.GetUtcNow().Returns(DateTime.Now.AddYears(-1));
        mock.Setup.GetNow().Returns(DateTime.Now.AddYears(-1));
        MyClock clock = mock;
        Assert.AreEqual(DateTime.Now.AddYears(-1).Year, clock.GetNow().Year);
    }
}

 

The code that is generated is

1
 
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
// <auto-generated />
#pragma warning disable
using System;
 
namespace MockMe
{
    internal static partial class Mock
    {
        public static object Me(global::MockMe.DummyClass unusedInstance)
        {
            throw new global::System.NotImplementedException();
        }
    }
}
#pragma warning restore
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
// <auto-generated />
#pragma warning disable
#nullable enable
 
namespace MockMe
{
    internal static partial class Mock
    {
 
 
        [global::System.CodeDom.Compiler.GeneratedCode("MockMe", "1.1.2.0")]
        public static global::MockMe.Generated.MockData.MyClockMock Me(global::MockData.MyClock? unusedInstance)
        {
            return new();
        }
 
    }
}
#pragma warning restore
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// <auto-generated />
#pragma warning disable
#nullable enable
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Reflection;
using HarmonyLib;
using MockMe;
using MockMe.Mocks;
using MockMe.Mocks.ClassMemberMocks;
using MockMe.Mocks.ClassMemberMocks.CallTracker;
 
namespace MockMe.Generated.MockData
{
    [global::System.CodeDom.Compiler.GeneratedCode("MockMe", "1.1.2.0")]
    internal class MyClockMock
        : global::MockMe.Abstractions.SealedTypeMock<global::MockData.MyClock>
    {
         
        public MyClockMock()
        {
            this.Setup = new MyClockMockSetup();
            this.CallTracker = new MyClockMockSetup.MyClockMockCallTracker(this.Setup);
            this.Assert = new MyClockMockSetup.MyClockMockCallTracker.MyClockMockAsserter(this.CallTracker);
            global::MockMe.MockStore<global::MockData.MyClock>.Store.TryAdd(this.MockedObject, this);
        }
 
        public MyClockMockSetup Setup { get; }
        public MyClockMockSetup.MyClockMockCallTracker.MyClockMockAsserter Assert { get; }
        private MyClockMockSetup.MyClockMockCallTracker CallTracker { get; }
 
        internal sealed class Patch23f715ba229342e08d6fb11494a17f90
        {
            private static bool Prefix(global::MockData.MyClock __instance, ref global::System.DateTime __result)
            {
                if (global::MockMe.MockStore<global::MockData.MyClock>.TryGetValue<MyClockMock>(__instance, out var mock))
                {
                    __result = mock.CallTracker.GetNow();
                    return false;
                }
 
                return true;
            }
        }
        internal sealed class Patch147ac8e5593f4d678d1855b2e81726e7
        {
            private static bool Prefix(global::MockData.MyClock __instance, ref global::System.DateTime __result)
            {
                if (global::MockMe.MockStore<global::MockData.MyClock>.TryGetValue<MyClockMock>(__instance, out var mock))
                {
                    __result = mock.CallTracker.GetUtcNow();
                    return false;
                }
 
                return true;
            }
        }
        static MyClockMock()
        {
            var harmony = new global::HarmonyLib.Harmony("com.mockme.patch");
 
            var originalPatch23f715ba229342e08d6fb11494a17f90 = typeof(global::MockData.MyClock).GetMethod("GetNow", new Type[] {  } );
            var Patch23f715ba229342e08d6fb11494a17f90 = typeof(Patch23f715ba229342e08d6fb11494a17f90).GetMethod("Prefix", global::System.Reflection.BindingFlags.Static | global::System.Reflection.BindingFlags.NonPublic);
 
            harmony.Patch(originalPatch23f715ba229342e08d6fb11494a17f90, prefix: new HarmonyMethod(Patch23f715ba229342e08d6fb11494a17f90));
 
            var originalPatch147ac8e5593f4d678d1855b2e81726e7 = typeof(global::MockData.MyClock).GetMethod("GetUtcNow", new Type[] {  } );
            var Patch147ac8e5593f4d678d1855b2e81726e7 = typeof(Patch147ac8e5593f4d678d1855b2e81726e7).GetMethod("Prefix", global::System.Reflection.BindingFlags.Static | global::System.Reflection.BindingFlags.NonPublic);
 
            harmony.Patch(originalPatch147ac8e5593f4d678d1855b2e81726e7, prefix: new HarmonyMethod(Patch147ac8e5593f4d678d1855b2e81726e7));
 
        }
 
    }
 
    [global::System.CodeDom.Compiler.GeneratedCode("MockMe", "1.1.2.0")]
    internal class MyClockMockSetup : global::MockMe.Mocks.ClassMemberMocks.Setup.MemberMockSetup
    {
 
        private global::MockMe.Mocks.ClassMemberMocks.MemberMock<global::System.DateTime>? GetNow_BagStore;
        public global::MockMe.Mocks.ClassMemberMocks.MemberMock<global::System.DateTime> GetNow()
        {
 
            return this.GetNow_BagStore ??= new();;
        }
        private global::MockMe.Mocks.ClassMemberMocks.MemberMock<global::System.DateTime>? GetUtcNow_BagStore;
        public global::MockMe.Mocks.ClassMemberMocks.MemberMock<global::System.DateTime> GetUtcNow()
        {
 
            return this.GetUtcNow_BagStore ??= new();;
        }
        [global::System.CodeDom.Compiler.GeneratedCode("MockMe", "1.1.2.0")]
        internal class MyClockMockCallTracker : MockCallTracker
        {
            private readonly MyClockMockSetup setup;
            public MyClockMockCallTracker(MyClockMockSetup setup)
            {
                this.setup = setup;
            }
 
            private int GetNow_CallStore;
 
            public global::System.DateTime GetNow()
            {
                this.GetNow_CallStore++;
                return MockCallTracker.CallMemberMock<global::System.DateTime>(this.setup.GetNow_BagStore);
            }
 
            private int GetUtcNow_CallStore;
 
            public global::System.DateTime GetUtcNow()
            {
                this.GetUtcNow_CallStore++;
                return MockCallTracker.CallMemberMock<global::System.DateTime>(this.setup.GetUtcNow_BagStore);
            }
 
            [global::System.CodeDom.Compiler.GeneratedCode("MockMe", "1.1.2.0")]
            internal class MyClockMockAsserter : MockAsserter
            {
                private readonly MyClockMockSetup.MyClockMockCallTracker tracker;
                public MyClockMockAsserter(MyClockMockSetup.MyClockMockCallTracker tracker)
                {
                    this.tracker = tracker;
                }
 
                public global::MockMe.Asserters.MemberAsserter GetNow() =>
                    new(this.tracker.GetNow_CallStore);
 
                public global::MockMe.Asserters.MemberAsserter GetUtcNow() =>
                    new(this.tracker.GetUtcNow_CallStore);
 
            }
 
        }
 
    }
 
}
#pragma warning restore

Code and pdf at

https://ignatandrei.github.io/RSCG_Examples/v2/docs/MockMe

RSCG – rscg_Interface_to_null_object

RSCG – rscg_Interface_to_null_object
 
 

name rscg_Interface_to_null_object
nuget https://www.nuget.org/packages/rscg_Interface_to_null_object/
https://www.nuget.org/packages/rscg_Interface_to_null_object_common
link https://github.com/ignatandrei/rscg_Interface_to_null_object/
author Andrei Ignat

Generate null objects for interfaces

 

This is how you can use rscg_Interface_to_null_object .

The code that you start with is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
<Project Sdk="Microsoft.NET.Sdk">
 
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
 
  <ItemGroup>
    <PackageReference Include="rscg_Interface_to_null_object" Version="2025.120.1832" OutputItemType="Analyzer" ReferenceOutputAssembly="false"  />
    <PackageReference Include="rscg_Interface_to_null_object_common" Version="2025.120.1832" />
  </ItemGroup>
 
    <PropertyGroup>
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
</Project>

The code that you will use is

01
02
03
04
05
06
07
08
09
10
11
12
using NullInterface;
 
Console.WriteLine("Hello, World!");
 
Console.WriteLine("Hello, World!");
IDepartment department = new Department_null();
department.Name = "IT";
IEmployee employee = new Employee_null();
employee.FirstName = "Andrei";
employee.Department = department;
Console.WriteLine(employee.FirstName);
Console.WriteLine(employee.Department.Name);
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
using InterfaceToNullObject;
 
namespace NullInterface;
[ToNullObject]
public interface IEmployee
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public IDepartment Department { get; set; }
    public string GetFullName();
 
    public string GetFullNameAndDepartment(string separator);
    public bool MoveEmployeeToDepartment(IDepartment department);
 
}
1
2
3
4
5
6
7
8
9
namespace NullInterface;
 
using InterfaceToNullObject;
 
[ToNullObject]
public interface IDepartment
{
    public string Name { get; set; }
}

 

The code that is generated is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
// <auto-generated/>
namespace Generated.NullInterface
{
    public static class TheAssemblyInfo
    {
         
        public static readonly System.DateTime DateGeneratedUTC ;
        public const string AssemblyName = "NullInterface";
        public const string GeneratedNameNice = "Olga Tokarczuk is feeling quick-witted in Quito";
        public const string GeneratedNameSmall = "quick-witted-Olga Tokarczuk";
        public const string GeneratedName = "quick-witted-Olga Tokarczuk-Quito";
        static TheAssemblyInfo(){
            DateGeneratedUTC = System.DateTime.ParseExact("2025-02-15 15:42:10", "yyyy-MM-dd HH:mm:ss", null);
        }
    }
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// <auto-generated>
    //     This code was generated by a tool :rscg_Interface_to_null_object
    //     Runtime Version: Jaroslav Seifert is feeling cheap in Belmopan
    //     DateOfTool : 2025-01-20 16:33:43
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
//------------------------------------------------------------------------------
/// <summary>
    /// This static partial class contains extension methods for sorting collections of IDepartment objects.
    /// </summary>
 
 #nullable enable
 #pragma warning disable CS8603
 #pragma warning disable CS8625
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCode("GeneratorName","2025.10120.11633.143")]
public partial class Department_null : global::NullInterface.IDepartment
{
 
        public virtual string Name { get; set; } = default(string);
     
}
 
#nullable restore
#pragma warning restore CS8603
#pragma warning restore CS8625
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// <auto-generated>
    //     This code was generated by a tool :rscg_Interface_to_null_object
    //     Runtime Version: Jaroslav Seifert is feeling cheap in Belmopan
    //     DateOfTool : 2025-01-20 16:33:43
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
//------------------------------------------------------------------------------
/// <summary>
    /// This static partial class contains extension methods for sorting collections of IEmployee objects.
    /// </summary>
 
 #nullable enable
 #pragma warning disable CS8603
 #pragma warning disable CS8625
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCode("GeneratorName","2025.10120.11633.143")]
public partial class Employee_null : global::NullInterface.IEmployee
{
 
        public virtual string FirstName { get; set; } = default(string);
     
        public virtual string LastName { get; set; } = default(string);
     
        public virtual NullInterface.IDepartment Department { get; set; } = default(NullInterface.IDepartment);
     
        public virtual string GetFullName() { return default(string); }
     
        public virtual string GetFullNameAndDepartment(string separator) { return default(string); }
     
        public virtual bool MoveEmployeeToDepartment(global::NullInterface.IDepartment department) { return default(bool); }
     
}
 
#nullable restore
#pragma warning restore CS8603
#pragma warning restore CS8625

Code and pdf at

https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg_Interface_to_null_object

What I use for a csproj for a Roslyn Code Generator

My csproj file looks like this

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<Project Sdk="Microsoft.NET.Sdk">
 
    <PropertyGroup>
        <TargetFramework>netstandard2.0</TargetFramework>
        <LangVersion>12.0</LangVersion>
        <Nullable>enable</Nullable>
        <ImplicitUsings>enable</ImplicitUsings>
        <IsRoslynComponent>true</IsRoslynComponent>
        <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
        <!--<IncludeBuildOutput>false</IncludeBuildOutput>-->
    </PropertyGroup>
    <PropertyGroup>
 
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
 
    <ItemGroup>
        <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
            <PrivateAssets>all</PrivateAssets>
            <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
        </PackageReference>
 
        <PackageReference Include="System.CodeDom" PrivateAssets="all" GeneratePathProperty="true" Version="8.0.0" />
        <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
        <None Remove="bin\Debug\netstandard2.0\\*.dll" />
        <None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
 
 
    </ItemGroup>
 
 
    <PropertyGroup>
        <TreatWarningsAsErrors>True</TreatWarningsAsErrors>
        <WarningsNotAsErrors>CS0436</WarningsNotAsErrors>
    </PropertyGroup>
 
 
    <ItemGroup>
        <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
        <None Include="../../README.md" Pack="true" PackagePath="\" />
        <None Include="../../readme.txt">
            <Pack>True</Pack>
            <PackagePath></PackagePath>
        </None>
        <None Include="../../LICENSE" Pack="true" PackagePath="\" />
    </ItemGroup>
    <PropertyGroup>
        <Description>Interface to null object - common</Description>
        <Copyright>MIT</Copyright>
        <NeutralLanguage>en-US</NeutralLanguage>
        <CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd))</CurrentDate>
        <Authors>Andrei Ignat</Authors>
        <Title>A C# source-generated class library for generating null objects from interface</Title>
        <PackageTags>dotnet;dotnetcore;csharp;generators;sourcegen;roslyn;</PackageTags>
        <PackageProjectUrl>https://github.com/ignatandrei/rscg_Interface_to_null_object</PackageProjectUrl>
        <PublishRepositoryUrl>true</PublishRepositoryUrl>
        <GenerateAssemblyInfo>true</GenerateAssemblyInfo>
        <GeneratePackageOnBuild>false</GeneratePackageOnBuild>
        <IncludeSymbols>true</IncludeSymbols>
        <IncludeSource>true</IncludeSource>
        <NoWarn>NU5125;NU5039;CS0436</NoWarn>
        <!--<Version>8.$([System.DateTime]::Now.ToString(yyyy.1MMdd.1HHss))</Version>-->
        <!--<Version>$([System.DateTime]::Now.ToString(8.yyyy.1MMdd.1HHmm))</Version>-->
        <Version>2025.119.1910</Version>
 
        <!--<Optimize Condition="'$(Configuration)'=='Release'">true</Optimize>-->
        <RepositoryUrl>https://github.com/ignatandrei/rscg_Interface_to_null_object</RepositoryUrl>
        <PackageLicenseFile>LICENSE</PackageLicenseFile>
        <RepositoryType>git</RepositoryType>
        <EmbedUntrackedSources>true</EmbedUntrackedSources>
        <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
        <PackageReadmeFile>README.md</PackageReadmeFile>
        <IsPackable>true</IsPackable>
        <!--<PackageIcon>logo.png</PackageIcon>-->
    </PropertyGroup>
 
 
    <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
        <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
        <SourceLinkCreate>true</SourceLinkCreate>
        <SourceLinkOriginUrl>https://github.com/ignatandrei/rscg_Interface_to_null_object</SourceLinkOriginUrl>
    </PropertyGroup>
     
     
     
    <ItemGroup>
        <PackageReference Include="RazorBlade" Version="0.6.0" PrivateAssets="all" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
        <PackageReference Include="RSCG_NameGenerator" Version="2024.11.11.1830">
            <OutputItemType>Analyzer</OutputItemType>
            <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
        </PackageReference>
 
    </ItemGroup>
 
</Project>

And now a detailed explanation

Project Sdk

<Project Sdk="Microsoft.NET.Sdk">

This tag specifies the SDK to use for the project. The Microsoft.NET.Sdk is a general-purpose SDK for .NET projects.

PropertyGroup

<PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <LangVersion>12.0</LangVersion>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
    <IsRoslynComponent>true</IsRoslynComponent>
    <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>
  • TargetFramework: Targets .NET Standard 2.0, ensuring compatibility with a wide range of .NET implementations.
  • LangVersion: Specifies the C# language version to use.
  • Nullable: Enables nullable reference types to improve null safety.
  • ImplicitUsings: Automatically includes commonly used namespaces.
  • IsRoslynComponent: Indicates that this project is a Roslyn component, useful for source generators.
  • EnforceExtendedAnalyzerRules: Enforces extended analyzer rules to maintain code quality.

Emit Compiler Generated Files

<PropertyGroup>
    <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
    <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
  • EmitCompilerGeneratedFiles: Emits compiler-generated files for debugging and analysis.
  • CompilerGeneratedFilesOutputPath: Specifies the output path for compiler-generated files.

Package References

<ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
        <PrivateAssets>all</PrivateAssets>
        <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="System.CodeDom" PrivateAssets="all" GeneratePathProperty="true" Version="8.0.0" />
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
    <None Remove="bin\Debug\netstandard2.0\\*.dll" />
    <None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>
  • Microsoft.CodeAnalysis.Analyzers: Adds a reference to the Microsoft.CodeAnalysis.Analyzers package, which provides code analysis tools.
  • System.CodeDom: Adds a reference to the System.CodeDom package, useful for code generation.
  • Microsoft.CodeAnalysis.CSharp: Adds a reference to the Microsoft.CodeAnalysis.CSharp package, necessary for Roslyn-based projects.
  • None Remove: Removes unnecessary DLLs from the build output.
  • None Include: Includes the generated DLL in the NuGet package under the specified path.

Treat Warnings as Errors

<PropertyGroup>
    <TreatWarningsAsErrors>True</TreatWarningsAsErrors>
    <WarningsNotAsErrors>CS0436</WarningsNotAsErrors>
</PropertyGroup>
  • TreatWarningsAsErrors: Treats all warnings as errors to ensure code quality.
  • WarningsNotAsErrors: Excludes specific warnings from being treated as errors.

Source Link and Additional Files

<ItemGroup>
    <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
    <None Include="../../README.md" Pack="true" PackagePath="\" />
    <None Include="../../readme.txt">
        <Pack>True</Pack>
        <PackagePath></PackagePath>
    </None>
    <None Include="../../LICENSE" Pack="true" PackagePath="\" />
</ItemGroup>
  • Microsoft.SourceLink.GitHub: Adds SourceLink support for GitHub, enabling better debugging experiences.
  • README.md: Includes the README.md file in the NuGet package.
  • readme.txt: Includes the readme.txt file in the NuGet package.
  • LICENSE: Includes the LICENSE file in the NuGet package.

Package Metadata

<PropertyGroup>
    <Description>Interface to null object - common</Description>
    <Copyright>MIT</Copyright>
    <NeutralLanguage>en-US</NeutralLanguage>
    <CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd))</CurrentDate>
    <Authors>Andrei Ignat</Authors>
    <Title>A C# source-generated class library for generating null objects from interface</Title>
    <PackageTags>dotnet;dotnetcore;csharp;generators;sourcegen;roslyn;</PackageTags>
    <PackageProjectUrl>https://github.com/ignatandrei/rscg_Interface_to_null_object</PackageProjectUrl>
    <PublishRepositoryUrl>true</PublishRepositoryUrl>
    <GenerateAssemblyInfo>true</GenerateAssemblyInfo>
    <GeneratePackageOnBuild>false</GeneratePackageOnBuild>
    <IncludeSymbols>true</IncludeSymbols>
    <IncludeSource>true</IncludeSource>
    <NoWarn>NU5125;NU5039;CS0436</NoWarn>
    <Version>2025.119.1910</Version>
    <RepositoryUrl>https://github.com/ignatandrei/rscg_Interface_to_null_object</RepositoryUrl>
    <PackageLicenseFile>LICENSE</PackageLicenseFile>
    <RepositoryType>git</RepositoryType>
    <EmbedUntrackedSources>true</EmbedUntrackedSources>
    <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
    <PackageReadmeFile>README.md</PackageReadmeFile>
    <IsPackable>true</IsPackable>
</PropertyGroup>
  • Description: Provides a description for the NuGet package.
  • Copyright: Specifies the copyright information.
  • NeutralLanguage: Sets the neutral language for the assembly.
  • CurrentDate: Sets the current date, useful for versioning.
  • Authors: Specifies the author of the package.
  • Title: Provides a title for the NuGet package.
  • PackageTags: Specifies tags for the NuGet package to improve discoverability.
  • PackageProjectUrl: Provides the URL to the project repository.
  • PublishRepositoryUrl: Publishes the repository URL in the NuGet package metadata.
  • GenerateAssemblyInfo: Generates assembly information attributes.
  • GeneratePackageOnBuild: Disables automatic package generation on build.
  • IncludeSymbols: Includes symbol files in the NuGet package for debugging.
  • IncludeSource: Includes source files in the NuGet package for debugging.
  • NoWarn: Suppresses specific warnings.
  • Version: Sets the version of the NuGet package.
  • RepositoryUrl: Specifies the repository URL.
  • PackageLicenseFile: Specifies the license file for the package.
  • RepositoryType: Specifies the repository type.
  • EmbedUntrackedSources: Embeds untracked source files in the PDB for better debugging.
  • AllowedOutputExtensionsInPackageBuildOutputFolder: Allows PDB files in the package build output folder.
  • PackageReadmeFile: Specifies the README file for the package.
  • IsPackable: Indicates that the project is packable into a NuGet package.

GitHub Actions

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'>
    <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
    <SourceLinkCreate>true</SourceLinkCreate>
    <SourceLinkOriginUrl>https://github.com/ignatandrei/rscg_Interface_to_null_object</SourceLinkOriginUrl>
</PropertyGroup>
  • ContinuousIntegrationBuild: Enables continuous integration build settings.
  • SourceLinkCreate: Enables SourceLink creation for better debugging.
  • SourceLinkOriginUrl: Specifies the SourceLink origin URL.

Additional Package References

<ItemGroup>
    <PackageReference Include="RazorBlade" Version="0.6.0" PrivateAssets="all" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
    <PackageReference Include="RSCG_NameGenerator" Version="2024.11.11.1830">
        <OutputItemType>Analyzer</OutputItemType>
        <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
    </PackageReference>
</ItemGroup>
  • RazorBlade: Adds a reference to the RazorBlade package, useful for code generation.
  • RSCG_NameGenerator: Adds a reference to the RSCG_NameGenerator package, useful for generating names in source code.

RSCG – Pure.DI

RSCG – Pure.DI
 
 

name Pure.DI
nuget https://www.nuget.org/packages/Pure.DI/
link https://github.com/DevTeam/Pure.DI
author Nikolay Pianikov

Constructing injecting container

 

This is how you can use Pure.DI .

The code that you start with is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
<Project Sdk="Microsoft.NET.Sdk">
 
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
    <PropertyGroup>
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
    <ItemGroup>
      <PackageReference Include="Pure.DI" Version="2.1.44">
        <PrivateAssets>all</PrivateAssets>
        <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      </PackageReference>
    </ItemGroup>
</Project>

The code that you will use is

01
02
03
04
05
06
07
08
09
10
11
12
13
using InjectDemo;
using Pure.DI;
 
 
DI.Setup("Composition")
    .Bind<IDatabase>().To<DatabaseCon>()
    .Bind<Database>().To<Database>()
    .Root<Database>();
    ;
 
var c = new Composition();
var con = c.Resolve<Database>();
con.Open();
01
02
03
04
05
06
07
08
09
10
namespace InjectDemo;
 
public partial class DatabaseCon:IDatabase
{
    public string? Connection { get; set; }
    public void Open()
    {
        Console.WriteLine("open from database con" );
    }
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
namespace InjectDemo;
 
partial class Database : IDatabase
{
    private readonly IDatabase con;
 
    public Database(IDatabase con)
    {
        this.con = con;
    }
    public void Open()
    {
        Console.WriteLine($"open from database");
        con.Open();
    }
 
}
1
2
3
4
5
6
7
namespace InjectDemo
{
    internal interface IDatabase
    {
        public void Open();
    }
}

 

The code that is generated is

001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
// <auto-generated/>
// by Pure.DI 2.1.44+4da6876f3ecd7c34771553d8409b829e287d3041
#nullable enable annotations
 
using Pure.DI;
using System;
using System.Buffers;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
 
/// <summary>
/// <para>
/// <b>Composition roots:</b><br/>
/// <list type="bullet">
/// <item>
/// <term>
/// Private composition root of type <see cref="InjectDemo.Database"/>. It can be resolved by <see cref="Resolve{T}()"/> method: <c>Resolve&lt;global::InjectDemo.Database&gt;()</c>
/// </term>
/// <description>
/// Provides a composition root of type <see cref="InjectDemo.Database"/>.
/// </description>
/// </item>
/// </list>
/// </para>
/// <br/>
/// <br/>This class was created by <a href="https://github.com/DevTeam/Pure.DI">Pure.DI</a> source code generator.
/// </summary>
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
partial class Composition
{
    private readonly Composition _rootM12D23di;
     
    /// <summary>
    /// This constructor creates a new instance of <see cref="Composition"/>.
    /// </summary>
    [global::Pure.DI.OrdinalAttribute(256)]
    public Composition()
    {
        _rootM12D23di = this;
    }
     
    /// <summary>
    /// This constructor creates a new instance of <see cref="Composition"/> scope based on <paramref name="parentScope"/>. This allows the <see cref="Lifetime.Scoped"/> life time to be applied.
    /// </summary>
    /// <param name="parentScope">Scope parent.</param>
    internal Composition(Composition parentScope)
    {
        _rootM12D23di = (parentScope ?? throw new global::System.ArgumentNullException(nameof(parentScope)))._rootM12D23di;
    }
     
    #region Roots
    /// <summary>
    /// <para>
    /// Provides a composition root of type <see cref="InjectDemo.Database"/>.
    /// </para>
    /// </summary>
    private global::InjectDemo.Database RootM12D23di1
    {
        [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
        get
        {
            return new global::InjectDemo.Database(new global::InjectDemo.DatabaseCon());
        }
    }
    #endregion
     
    #region API
    /// <summary>
    /// Resolves the composition root.
    /// </summary>
    /// <typeparam name="T">The type of the composition root.</typeparam>
    /// <returns>A composition root.</returns>
    #if NETSTANDARD2_0_OR_GREATER || NETCOREAPP || NET40_OR_GREATER || NET
    [global::System.Diagnostics.Contracts.Pure]
    #endif
    [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
    public T Resolve<T>()
    {
        return ResolverM12D23di<T>.Value.Resolve(this);
    }
     
    /// <summary>
    /// Resolves the composition root by tag.
    /// </summary>
    /// <typeparam name="T">The type of the composition root.</typeparam>
    /// <param name="tag">The tag of a composition root.</param>
    /// <returns>A composition root.</returns>
    #if NETSTANDARD2_0_OR_GREATER || NETCOREAPP || NET40_OR_GREATER || NET
    [global::System.Diagnostics.Contracts.Pure]
    #endif
    [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
    public T Resolve<T>(object? tag)
    {
        return ResolverM12D23di<T>.Value.ResolveByTag(this, tag);
    }
     
    /// <summary>
    /// Resolves the composition root.
    /// </summary>
    /// <param name="type">The type of the composition root.</param>
    /// <returns>A composition root.</returns>
    #if NETSTANDARD2_0_OR_GREATER || NETCOREAPP || NET40_OR_GREATER || NET
    [global::System.Diagnostics.Contracts.Pure]
    #endif
    [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
    public object Resolve(global::System.Type type)
    {
        var index = (int)(_bucketSizeM12D23di * ((uint)global::System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(type) % 1));
        ref var pair = ref _bucketsM12D23di[index];
        return pair.Key == type ? pair.Value.Resolve(this) : ResolveM12D23di(type, index);
    }
     
    [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
    private object ResolveM12D23di(global::System.Type type, int index)
    {
        var finish = index + _bucketSizeM12D23di;
        while (++index < finish)
        {
            ref var pair = ref _bucketsM12D23di[index];
            if (pair.Key == type)
            {
                return pair.Value.Resolve(this);
            }
        }
         
        throw new global::System.InvalidOperationException($"{CannotResolveMessageM12D23di} {OfTypeMessageM12D23di} {type}.");
    }
     
    /// <summary>
    /// Resolves the composition root by tag.
    /// </summary>
    /// <param name="type">The type of the composition root.</param>
    /// <param name="tag">The tag of a composition root.</param>
    /// <returns>A composition root.</returns>
    #if NETSTANDARD2_0_OR_GREATER || NETCOREAPP || NET40_OR_GREATER || NET
    [global::System.Diagnostics.Contracts.Pure]
    #endif
    [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
    public object Resolve(global::System.Type type, object? tag)
    {
        var index = (int)(_bucketSizeM12D23di * ((uint)global::System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(type) % 1));
        ref var pair = ref _bucketsM12D23di[index];
        return pair.Key == type ? pair.Value.ResolveByTag(this, tag) : ResolveM12D23di(type, tag, index);
    }
     
    [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
    private object ResolveM12D23di(global::System.Type type, object? tag, int index)
    {
        var finish = index + _bucketSizeM12D23di;
        while (++index < finish)
        {
            ref var pair = ref _bucketsM12D23di[index];
            if (pair.Key == type)
            {
                return pair.Value.ResolveByTag(this, tag);
            }
        }
         
        throw new global::System.InvalidOperationException($"{CannotResolveMessageM12D23di} \"{tag}\" {OfTypeMessageM12D23di} {type}.");
    }
    #endregion
     
    private readonly static int _bucketSizeM12D23di;
    private readonly static global::Pure.DI.Pair<global::System.Type, global::Pure.DI.IResolver<Composition, object>>[] _bucketsM12D23di;
     
    static Composition()
    {
        var valResolverM12D23di_0000 = new ResolverM12D23di_0000();
        ResolverM12D23di<global::InjectDemo.Database>.Value = valResolverM12D23di_0000;
        _bucketsM12D23di = global::Pure.DI.Buckets<global::System.Type, global::Pure.DI.IResolver<Composition, object>>.Create(
            1,
            out _bucketSizeM12D23di,
            new global::Pure.DI.Pair<global::System.Type, global::Pure.DI.IResolver<Composition, object>>[1]
            {
                 new global::Pure.DI.Pair<global::System.Type, global::Pure.DI.IResolver<Composition, object>>(typeof(InjectDemo.Database), valResolverM12D23di_0000)
            });
    }
     
    #region Resolvers
    private const string CannotResolveMessageM12D23di = "Cannot resolve composition root ";
    private const string OfTypeMessageM12D23di = "of type ";
     
    private class ResolverM12D23di<T>: global::Pure.DI.IResolver<Composition, T>
    {
        public static global::Pure.DI.IResolver<Composition, T> Value = new ResolverM12D23di<T>();
         
        public virtual T Resolve(Composition composite)
        {
            throw new global::System.InvalidOperationException($"{CannotResolveMessageM12D23di}{OfTypeMessageM12D23di}{typeof(T)}.");
        }
         
        public virtual T ResolveByTag(Composition composite, object tag)
        {
            throw new global::System.InvalidOperationException($"{CannotResolveMessageM12D23di}\"{tag}\" {OfTypeMessageM12D23di}{typeof(T)}.");
        }
    }
     
    private sealed class ResolverM12D23di_0000: ResolverM12D23di<InjectDemo.Database>
    {
        public override InjectDemo.Database Resolve(Composition composition)
        {
            return composition.RootM12D23di1;
        }
         
        public override InjectDemo.Database ResolveByTag(Composition composition, object tag)
        {
            switch (tag)
            {
                case null:
                    return composition.RootM12D23di1;
                 
                default:
                    return base.ResolveByTag(composition, tag);
            }
        }
    }
    #endregion
     
}
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140
0141
0142
0143
0144
0145
0146
0147
0148
0149
0150
0151
0152
0153
0154
0155
0156
0157
0158
0159
0160
0161
0162
0163
0164
0165
0166
0167
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177
0178
0179
0180
0181
0182
0183
0184
0185
0186
0187
0188
0189
0190
0191
0192
0193
0194
0195
0196
0197
0198
0199
0200
0201
0202
0203
0204
0205
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215
0216
0217
0218
0219
0220
0221
0222
0223
0224
0225
0226
0227
0228
0229
0230
0231
0232
0233
0234
0235
0236
0237
0238
0239
0240
0241
0242
0243
0244
0245
0246
0247
0248
0249
0250
0251
0252
0253
0254
0255
0256
0257
0258
0259
0260
0261
0262
0263
0264
0265
0266
0267
0268
0269
0270
0271
0272
0273
0274
0275
0276
0277
0278
0279
0280
0281
0282
0283
0284
0285
0286
0287
0288
0289
0290
0291
0292
0293
0294
0295
0296
0297
0298
0299
0300
0301
0302
0303
0304
0305
0306
0307
0308
0309
0310
0311
0312
0313
0314
0315
0316
0317
0318
0319
0320
0321
0322
0323
0324
0325
0326
0327
0328
0329
0330
0331
0332
0333
0334
0335
0336
0337
0338
0339
0340
0341
0342
0343
0344
0345
0346
0347
0348
0349
0350
0351
0352
0353
0354
0355
0356
0357
0358
0359
0360
0361
0362
0363
0364
0365
0366
0367
0368
0369
0370
0371
0372
0373
0374
0375
0376
0377
0378
0379
0380
0381
0382
0383
0384
0385
0386
0387
0388
0389
0390
0391
0392
0393
0394
0395
0396
0397
0398
0399
0400
0401
0402
0403
0404
0405
0406
0407
0408
0409
0410
0411
0412
0413
0414
0415
0416
0417
0418
0419
0420
0421
0422
0423
0424
0425
0426
0427
0428
0429
0430
0431
0432
0433
0434
0435
0436
0437
0438
0439
0440
0441
0442
0443
0444
0445
0446
0447
0448
0449
0450
0451
0452
0453
0454
0455
0456
0457
0458
0459
0460
0461
0462
0463
0464
0465
0466
0467
0468
0469
0470
0471
0472
0473
0474
0475
0476
0477
0478
0479
0480
0481
0482
0483
0484
0485
0486
0487
0488
0489
0490
0491
0492
0493
0494
0495
0496
0497
0498
0499
0500
0501
0502
0503
0504
0505
0506
0507
0508
0509
0510
0511
0512
0513
0514
0515
0516
0517
0518
0519
0520
0521
0522
0523
0524
0525
0526
0527
0528
0529
0530
0531
0532
0533
0534
0535
0536
0537
0538
0539
0540
0541
0542
0543
0544
0545
0546
0547
0548
0549
0550
0551
0552
0553
0554
0555
0556
0557
0558
0559
0560
0561
0562
0563
0564
0565
0566
0567
0568
0569
0570
0571
0572
0573
0574
0575
0576
0577
0578
0579
0580
0581
0582
0583
0584
0585
0586
0587
0588
0589
0590
0591
0592
0593
0594
0595
0596
0597
0598
0599
0600
0601
0602
0603
0604
0605
0606
0607
0608
0609
0610
0611
0612
0613
0614
0615
0616
0617
0618
0619
0620
0621
0622
0623
0624
0625
0626
0627
0628
0629
0630
0631
0632
0633
0634
0635
0636
0637
0638
0639
0640
0641
0642
0643
0644
0645
0646
0647
0648
0649
0650
0651
0652
0653
0654
0655
0656
0657
0658
0659
0660
0661
0662
0663
0664
0665
0666
0667
0668
0669
0670
0671
0672
0673
0674
0675
0676
0677
0678
0679
0680
0681
0682
0683
0684
0685
0686
0687
0688
0689
0690
0691
0692
0693
0694
0695
0696
0697
0698
0699
0700
0701
0702
0703
0704
0705
0706
0707
0708
0709
0710
0711
0712
0713
0714
0715
0716
0717
0718
0719
0720
0721
0722
0723
0724
0725
0726
0727
0728
0729
0730
0731
0732
0733
0734
0735
0736
0737
0738
0739
0740
0741
0742
0743
0744
0745
0746
0747
0748
0749
0750
0751
0752
0753
0754
0755
0756
0757
0758
0759
0760
0761
0762
0763
0764
0765
0766
0767
0768
0769
0770
0771
0772
0773
0774
0775
0776
0777
0778
0779
0780
0781
0782
0783
0784
0785
0786
0787
0788
0789
0790
0791
0792
0793
0794
0795
0796
0797
0798
0799
0800
0801
0802
0803
0804
0805
0806
0807
0808
0809
0810
0811
0812
0813
0814
0815
0816
0817
0818
0819
0820
0821
0822
0823
0824
0825
0826
0827
0828
0829
0830
0831
0832
0833
0834
0835
0836
0837
0838
0839
0840
0841
0842
0843
0844
0845
0846
0847
0848
0849
0850
0851
0852
0853
0854
0855
0856
0857
0858
0859
0860
0861
0862
0863
0864
0865
0866
0867
0868
0869
0870
0871
0872
0873
0874
0875
0876
0877
0878
0879
0880
0881
0882
0883
0884
0885
0886
0887
0888
0889
0890
0891
0892
0893
0894
0895
0896
0897
0898
0899
0900
0901
0902
0903
0904
0905
0906
0907
0908
0909
0910
0911
0912
0913
0914
0915
0916
0917
0918
0919
0920
0921
0922
0923
0924
0925
0926
0927
0928
0929
0930
0931
0932
0933
0934
0935
0936
0937
0938
0939
0940
0941
0942
0943
0944
0945
0946
0947
0948
0949
0950
0951
0952
0953
0954
0955
0956
0957
0958
0959
0960
0961
0962
0963
0964
0965
0966
0967
0968
0969
0970
0971
0972
0973
0974
0975
0976
0977
0978
0979
0980
0981
0982
0983
0984
0985
0986
0987
0988
0989
0990
0991
0992
0993
0994
0995
0996
0997
0998
0999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
// <auto-generated/>
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V2
#pragma warning disable
 
#if !PUREDI_API_FUNC_SUPPRESSION
namespace System
{
#if NET20
    internal delegate TResult Func<out TResult>();
#endif
#if NET20 || NET35
    internal delegate TResult Func<in T, out TResult>(T arg);
    internal delegate TResult Func<in T1, in T2, out TResult>(T1 arg1, T2 arg2);
    internal delegate TResult Func<in T1, in T2, in T3, out TResult>(T1 arg1, T2 arg2, T3 arg3);
    internal delegate TResult Func<in T1, in T2, in T3, in T4, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
    internal delegate TResult Func<in T1, in T2, in T3, in T4, in T5, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5);
    internal delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6);
    internal delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);
    internal delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8);
#endif
}
#endif
 
namespace Pure.DI
{
    using System;
 
    /// <summary>
    /// Binding lifetimes.
    /// <example>
    /// <code>
    /// DI.Setup("Composition")
    ///     .Bind&lt;IDependency&gt;().As(Lifetime.Singleton).To&lt;Dependency&gt;();
    /// </code>
    /// </example>
    /// </summary>
    /// <seealso cref="Pure.DI.DI.Setup"/>
    /// <seealso cref="IBinding.As"/>
    /// <seealso cref="IConfiguration.DefaultLifetime"/>
    internal enum Lifetime
    {
        /// <summary>
        /// Specifies to create a new dependency instance each time. This is the default value and can be omitted.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().As(Lifetime.Transient).To&lt;Dependency&gt;();
        /// </code>
        /// This is the default lifetime, it can be omitted, for example:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        Transient,
 
        /// <summary>
        /// Ensures that there will be a single instance of the dependency for each composition.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().As(Lifetime.Singleton).To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        Singleton,
 
        /// <summary>
        /// Guarantees that there will be a single instance of the dependency for each root of the composition.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().As(Lifetime.PerResolve).To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        PerResolve,
         
        /// <summary>
        /// Does not guarantee that there will be a single instance of the dependency for each root of the composition, but is useful to reduce the number of instances of type.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().As(Lifetime.PerBlock).To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        PerBlock,
         
        /// <summary>
        /// Ensures that there will be a single instance of the dependency for each scope.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().As(Lifetime.Singleton).To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        Scoped
    }
     
    /// <summary>
    /// Hints for the code generator and can be used to fine tune code generation.
    /// <example>
    /// <code>
    /// // Resolve = Off
    /// DI.Setup("Composition")
    ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
    /// </code>
    /// or using the API call <see cref="IConfiguration.Hint"/>:
    /// <code>
    /// DI.Setup("Composition")
    ///     .Hint(Hint.Resolve, "Off")
    ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
    /// </code>
    /// </example>
    /// </summary>
    /// <seealso cref="IConfiguration.Hint"/>
    internal enum Hint
    {
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to generate <c>Resolve</c> methods. <c>On</c> by default.
        /// <example>
        /// <code>
        /// // Resolve = Off
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.Resolve, "Off")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        Resolve,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to use partial <c>OnNewInstance</c> method. <c>Off</c> by default.
        /// <example>
        /// <code>
        /// // OnNewInstance = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnNewInstance, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnNewInstance,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to generate partial <c>OnNewInstance</c> method when the _OnNewInstance_ hint is <c>On</c>. <c>On</c> by default.
        /// <example>
        /// <code>
        /// // OnNewInstancePartial = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnNewInstancePartial, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnNewInstancePartial,
         
        /// <summary>
        /// The regular expression to filter OnNewInstance by the instance type name. ".+" by default.
        /// <example>
        /// <code>
        /// // OnNewInstanceImplementationTypeNameRegularExpression = Dependency
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnNewInstanceImplementationTypeNameRegularExpression, "Dependency")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnNewInstanceImplementationTypeNameRegularExpression,
         
        /// <summary>
        /// The regular expression to filter OnNewInstance by the tag. ".+" by default.
        /// <example>
        /// <code>
        /// // OnNewInstanceTagRegularExpression = IDependency
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnNewInstanceTagRegularExpression, "IDependency")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnNewInstanceTagRegularExpression,
         
        /// <summary>
        /// The regular expression to filter OnNewInstance by the lifetime. ".+" by default.
        /// <example>
        /// <code>
        /// // OnNewInstanceLifetimeRegularExpression = Singleton
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnNewInstanceLifetimeRegularExpression, "Singleton")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnNewInstanceLifetimeRegularExpression,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to use partial <c>OnDependencyInjection</c> method to control of dependency injection. <c>Off</c> by default.
        /// <example>
        /// <code>
        /// // OnDependencyInjection = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnDependencyInjection, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnDependencyInjection,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to generate partial <c>OnDependencyInjection</c> method when the _OnDependencyInjection_ hint is <c>On</c> to control of dependency injection. <c>On</c> by default.
        /// <example>
        /// <code>
        /// // OnDependencyInjectionPartial = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnDependencyInjectionPartial, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnDependencyInjectionPartial,
         
        /// <summary>
        /// The regular expression to filter OnDependencyInjection by the instance type name. ".+" by default.
        /// <example>
        /// <code>
        /// // OnDependencyInjectionImplementationTypeNameRegularExpression = Dependency
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnDependencyInjectionImplementationTypeNameRegularExpression, "Dependency")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnDependencyInjectionImplementationTypeNameRegularExpression,
         
        /// <summary>
        /// The regular expression to filter OnDependencyInjection by the resolving type name. ".+" by default.
        /// <example>
        /// <code>
        /// // OnDependencyInjectionContractTypeNameRegularExpression = IDependency
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnDependencyInjectionContractTypeNameRegularExpression, "IDependency")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnDependencyInjectionContractTypeNameRegularExpression,
         
        /// <summary>
        /// The regular expression to filter OnDependencyInjection by the tag. ".+" by default.
        /// <example>
        /// <code>
        /// // OnDependencyInjectionTagRegularExpression = MyTag
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;("MyTag").To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnDependencyInjectionTagRegularExpression, "MyTag")
        ///     .Bind&lt;IDependency&gt;("MyTag").To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnDependencyInjectionTagRegularExpression,
         
        /// <summary>
        /// The regular expression to filter OnDependencyInjection by the lifetime. ".+" by default.
        /// <example>
        /// <code>
        /// // OnDependencyInjectionLifetimeRegularExpression = Singleton
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnDependencyInjectionLifetimeRegularExpression, "Singleton")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnDependencyInjectionLifetimeRegularExpression,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to use a partial <c>OnCannotResolve&lt;T&gt;(...)</c> method to handle a scenario in which the dependency cannot be resolved. <c>Off</c> by default.
        /// <example>
        /// <code>
        /// // OnCannotResolve = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnCannotResolve, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnCannotResolve,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to generate a partial <c>OnCannotResolve&lt;T&gt;(...)</c> method when the <c>OnCannotResolve</c> hint is <c>On</c> to handle a scenario in which the dependency cannot be resolved. <c>On</c> by default.
        /// <example>
        /// <code>
        /// // OnCannotResolvePartial = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnCannotResolvePartial, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnCannotResolvePartial,
         
        /// <summary>
        /// The regular expression to filter OnCannotResolve by the resolving type name. ".+" by default.
        /// <example>
        /// <code>
        /// // OnCannotResolveContractTypeNameRegularExpression = OtherType
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnCannotResolveContractTypeNameRegularExpression, "OtherType")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnCannotResolveContractTypeNameRegularExpression,
         
        /// <summary>
        /// The regular expression to filter OnCannotResolve by the tag. ".+" by default.
        /// <example>
        /// <code>
        /// // OnCannotResolveTagRegularExpression = MyTag
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnCannotResolveTagRegularExpression, "MyTag")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnCannotResolveTagRegularExpression,
         
        /// <summary>
        /// The regular expression to filter OnCannotResolve by the lifetime. ".+" by default.
        /// <example>
        /// <code>
        /// // OnCannotResolveLifetimeRegularExpression = Singleton
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnCannotResolveLifetimeRegularExpression, "Singleton")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnCannotResolveLifetimeRegularExpression,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to use a static partial <c>OnNewRoot&lt;T&gt;(...)</c> method to handle the new Composition root registration event. <c>Off</c> by default.
        /// <example>
        /// <code>
        /// // OnNewRoot = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnNewRoot, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnNewRoot,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determines whether to generate a static partial <c>OnNewRoot&lt;T&gt;(...)</c> method when the <c>OnNewRoot</c> hint is <c>On</c> to handle the new Composition root registration event. <c>On</c> by default.
        /// <example>
        /// <code>
        /// // OnNewRootPartial = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.OnNewRootPartial, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        OnNewRootPartial,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Determine if the <c>ToString()</c> method should be generated. This method provides a text-based class diagram in the format mermaid. <c>Off</c> by default.
        /// <example>
        /// <code>
        /// // ToString = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ToString, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ToString,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. This hint determines whether object Composition will be created in a thread-safe manner. <c>On</c> by default.
        /// <example>
        /// <code>
        /// // ThreadSafe = Off
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ThreadSafe, "Off")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ThreadSafe,
         
        /// <summary>
        /// Overrides modifiers of the method <c>public T Resolve&lt;T&gt;()</c>. "public" by default.
        /// <example>
        /// <code>
        /// // ResolveMethodModifiers = internal
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ResolveMethodModifiers, "internal")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ResolveMethodModifiers,
         
        /// <summary>
        /// Overrides name of the method <c>public T Resolve&lt;T&gt;()</c>. "Resolve" by default.
        /// <example>
        /// <code>
        /// // ResolveMethodName = GetService
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ResolveMethodName, "GetService")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ResolveMethodName,
         
        /// <summary>
        /// Overrides modifiers of the method <c>public T Resolve&lt;T&gt;(object? tag)</c>. "public" by default.
        /// <example>
        /// <code>
        /// // ResolveByTagMethodModifiers = internal
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ResolveByTagMethodModifiers, "internal")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ResolveByTagMethodModifiers,
         
        /// <summary>
        /// Overrides name of the method <c>public T Resolve&lt;T&gt;(object? tag)</c>. "Resolve" by default.
        /// <example>
        /// For example:
        /// <code>
        /// // ResolveByTagMethodName = GetService
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ResolveByTagMethodName, "GetService")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ResolveByTagMethodName,
         
        /// <summary>
        /// Overrides modifiers of the method <c>public object Resolve(Type type)</c>. "public" by default.
        /// <example>
        /// <code>
        /// // ObjectResolveMethodModifiers = internal
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ObjectResolveMethodModifiers, "internal")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ObjectResolveMethodModifiers,
         
        /// <summary>
        /// Overrides name of the method <c>public object Resolve(Type type)</c>. "Resolve" by default.
        /// <example>
        /// <code>
        /// // ObjectResolveMethodName = GetService
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ObjectResolveMethodName, "GetService")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ObjectResolveMethodName,
         
        /// <summary>
        /// Overrides modifiers of the method <c>public object Resolve(Type type, object? tag)</c>. "public" by default.
        /// <example>
        /// <code>
        /// // ObjectResolveByTagMethodModifiers = internal
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ObjectResolveByTagMethodModifiers, "internal")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ObjectResolveByTagMethodModifiers,
         
        /// <summary>
        /// Overrides name of the method <c>public object Resolve(Type type, object? tag)</c>. "Resolve" by default.
        /// <example>
        /// <code>
        /// // ObjectResolveByTagMethodName = GetService
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.ObjectResolveByTagMethodName, "GetService")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        ObjectResolveByTagMethodName,
         
        /// <summary>
        /// Overrides modifiers of the method <c>public void Dispose()</c>. "public" by default.
        /// <example>
        /// <code>
        /// // DisposeMethodModifiers = internal
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.DisposeMethodModifiers, "internal")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        DisposeMethodModifiers,
         
        /// <summary>
        /// Overrides modifiers of the method <c>public <see cref="ValueTask"/> DisposeAsyncMethodModifiers()</c>. "public" by default.
        /// <example>
        /// <code>
        /// // DisposeAsyncMethodModifiers = internal
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.DisposeAsyncMethodModifiers, "internal")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        DisposeAsyncMethodModifiers,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Specifies whether the generated code should be formatted. This option consumes a lot of CPU resources. <c>Off</c> by default.
        /// <example>
        /// <code>
        /// // FormatCode = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.FormatCode, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        FormatCode,
         
        /// <summary>
        /// <c>Error</c> or <c>Warning</c> or <c>Info</c> or <c>Hidden</c>. Indicates the severity level of the situation when, in the binding, an implementation does not implement a contract. <c>Error</c> by default.
        /// <example>
        /// <code>
        /// // FormatCode = On
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.SeverityOfNotImplementedContracts, "On")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        SeverityOfNotImplementedContract,
         
        /// <summary>
        /// <c>On</c> or <c>Off</c>. Specifies whether the generated code should be commented. <c>On</c> by default.
        /// <example>
        /// <code>
        /// // Comments = Off
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// <br/>
        /// or using the API call <see cref="IConfiguration.Hint"/>:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Hint.Comments, "Off")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Hint"/>
        Comments
    }
 
    /// <summary>
    /// Represents a generic type argument attribute. It allows you to create custom generic type argument such as <see cref="TTS"/>, <see cref="TTDictionary{TKey,TValue}"/>, etc.
    /// <example>
    /// <code>
    /// [GenericTypeArgument]
    /// internal interface TTMy: IMy { }
    /// </code>
    /// </example>
    /// </summary>
    [global::System.AttributeUsage(global::System.AttributeTargets.Class | global::System.AttributeTargets.Interface | global::System.AttributeTargets.Struct | global::System.AttributeTargets.Enum)]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal sealed class GenericTypeArgumentAttribute : global::System.Attribute { }
     
    /// <summary>
    /// Represents an ordinal attribute.
    /// This attribute is part of the API, but you can use your own attribute at any time, and this allows you to define them in the assembly and namespace you want.
    /// <example>
    /// For constructors, it defines the sequence of attempts to use a particular constructor to create an object:
    /// <code>
    /// class Service : IService
    /// {
    ///     private readonly string _name;
    ///
    ///
    ///     [Ordinal(1)]
    ///     public Service(IDependency dependency) =&gt;
    ///         _name = "with dependency";
    ///
    ///
    ///     [Ordinal(0)]
    ///     public Service(string name) =&gt; _name = name;
    /// }
    /// </code>
    /// <br/>
    /// For fields, properties and methods, it specifies to perform dependency injection and defines the sequence:
    /// <code>
    /// class Person : IPerson
    /// {
    ///     private readonly string _name = "";
    ///
    ///     [Ordinal(0)]
    ///     public int Id;
    ///
    ///
    ///     [Ordinal(1)]
    ///     public string FirstName
    ///     {
    ///         set
    ///         {
    ///             _name = value;
    ///         }
    ///     }
    ///
    ///
    ///     public IDependency? Dependency { get; private set; }
    ///
    ///
    ///     [Ordinal(2)]
    ///     public void SetDependency(IDependency dependency) =&gt;
    ///         Dependency = dependency;
    /// }
    /// </code>
    /// </example>
    /// </summary>
    /// <seealso cref="TagAttribute"/>
    /// <seealso cref="TypeAttribute"/>
    [global::System.AttributeUsage(global::System.AttributeTargets.Constructor | global::System.AttributeTargets.Method | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal class OrdinalAttribute : global::System.Attribute
    {
        /// <summary>
        /// Creates an attribute instance.
        /// </summary>
        /// <param name="ordinal">The injection ordinal.</param>
        public OrdinalAttribute(int ordinal) { }
    }
 
    /// <summary>
    /// Represents a tag attribute overriding an injection tag. The tag can be a constant, a type, or a value of an enumerated type.
    /// This attribute is part of the API, but you can use your own attribute at any time, and this allows you to define them in the assembly and namespace you want.
    /// <example>
    /// Sometimes it's important to take control of building a dependency graph. For example, when there are multiple implementations of the same contract. In this case, tags will help:
    /// <code>
    /// interface IDependency { }
    ///
    ///
    /// class AbcDependency : IDependency { }
    ///
    ///
    /// class XyzDependency : IDependency { }
    ///
    ///
    /// class Dependency : IDependency { }
    ///
    ///
    /// interface IService
    /// {
    ///     IDependency Dependency1 { get; }
    ///
    ///
    ///     IDependency Dependency2 { get; }
    /// }
    ///
    ///
    /// class Service : IService
    /// {
    ///     public Service(
    ///         [Tag("Abc")] IDependency dependency1,
    ///         [Tag("Xyz")] IDependency dependency2)
    ///     {
    ///         Dependency1 = dependency1;
    ///         Dependency2 = dependency2;
    ///     }
    ///
    ///     public IDependency Dependency1 { get; }
    ///
    ///
    ///     public IDependency Dependency2 { get; }
    /// }
    ///
    ///
    /// DI.Setup("Composition")
    ///     .Bind&lt;IDependency&gt;("Abc").To&lt;AbcDependency&gt;()
    ///     .Bind&lt;IDependency&gt;("Xyz").To&lt;XyzDependency&gt;()
    ///     .Bind&lt;IService&gt;().To&lt;Service&gt;().Root&lt;IService&gt;("Root");
    /// </code>
    /// </example>
    /// </summary>
    /// <seealso cref="OrdinalAttribute"/>
    /// <seealso cref="TypeAttribute"/>
    [global::System.AttributeUsage(global::System.AttributeTargets.Parameter | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal class TagAttribute : global::System.Attribute
    {
        /// <summary>
        /// Creates an attribute instance.
        /// </summary>
        /// <param name="tag">The injection tag. See also <see cref="IBinding.Tags"/></param>.
        public TagAttribute(object tag) { }
    }
 
    /// <summary>
    /// The injection type can be defined manually using the <c>Type</c> attribute.This attribute explicitly overrides an injected type, otherwise it would be determined automatically based on the type of the constructor/method, property, or field parameter.
    /// This attribute is part of the API, but you can use your own attribute at any time, and this allows you to define them in the assembly and namespace you want.
    /// <example>
    /// <code>
    /// interface IDependency { }
    ///
    ///
    /// class AbcDependency : IDependency { }
    ///
    ///
    /// class XyzDependency : IDependency { }
    ///
    ///
    /// interface IService
    /// {
    ///     IDependency Dependency1 { get; }
    ///
    ///     IDependency Dependency2 { get; }
    /// }
    ///
    ///
    /// class Service : IService
    /// {
    ///     public Service(
    ///         [Type(typeof(AbcDependency))] IDependency dependency1,
    ///         [Type(typeof(XyzDependency))] IDependency dependency2)
    ///     {
    ///         Dependency1 = dependency1;
    ///         Dependency2 = dependency2;
    ///     }
    ///
    ///
    ///     public IDependency Dependency1 { get; }
    ///
    ///
    ///     public IDependency Dependency2 { get; }
    /// }
    ///
    ///
    /// DI.Setup("Composition")
    ///     .Bind&lt;IService&gt;().To&lt;Service&gt;().Root&lt;IService&gt;("Root");
    /// </code>
    /// </example>
    /// </summary>
    /// <seealso cref="TagAttribute"/>
    /// <seealso cref="OrdinalAttribute"/>
    [global::System.AttributeUsage(global::System.AttributeTargets.Parameter | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal class TypeAttribute : global::System.Attribute
    {
        /// <summary>
        /// Creates an attribute instance.
        /// </summary>
        /// <param name="type">The injection type. See also <see cref="IConfiguration.Bind{T}"/> and <see cref="IBinding.Bind{T}"/>.</param>
        public TypeAttribute(global::System.Type type) { }
    }
     
    /// <summary>
    /// Indicates that a property or method can be automatically added as a binding.
    /// <example>
    /// <code>
    /// internal class DependencyProvider
    /// {
    ///     [Bind()]
    ///     public Dependency Dep => new Dependency();
    /// }
    /// </code>
    /// <code>
    /// internal class DependencyProvider
    /// {
    ///     [Bind(typeof(IDependency&lt;TT&gt;), Lifetime.Singleton)]
    ///     public Dependency GetDep&lt;T&gt;() =&gt; new Dependency();
    /// }
    /// </code>
    /// <code>
    /// internal class DependencyProvider
    /// {
    ///     [Bind(typeof(IDependency), Lifetime.PerResolve, "some tag")]
    ///     public Dependency GetDep(int id) => new Dependency(id);
    /// }
    /// </code>
    /// </example>
    /// </summary>
    [global::System.AttributeUsage(global::System.AttributeTargets.Property | global::System.AttributeTargets.Method | global::System.AttributeTargets.Field)]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal class BindAttribute : global::System.Attribute
    {
        /// <summary>
        /// Creates an attribute instance.
        /// </summary>
        public BindAttribute(global::System.Type type = default(global::System.Type), Lifetime lifetime = Lifetime.Transient, params object[] tags) { }
    }
 
    /// <summary>
    /// Determines how the partial class will be generated. The <see cref="DI.Setup"/> method has an additional argument <c>kind</c>, which defines the type of composition:
    /// <example>
    /// <code>
    /// DI.Setup("BaseComposition", CompositionKind.Internal);
    /// </code>
    /// </example>
    /// </summary>
    /// <seealso cref="DI.Setup"/>
    internal enum CompositionKind
    {
        /// <summary>
        /// This value is used by default. If this value is specified, a normal partial class will be generated.
        /// </summary>
        Public,
         
        /// <summary>
        /// If this value is specified, the class will not be generated, but this setting can be used by other users as a baseline. The API call <see cref="IConfiguration.DependsOn"/> is mandatory.
        /// </summary>
        Internal,
         
        /// <summary>
        /// No partial classes will be created when this value is specified, but this setting is the baseline for all installations in the current project, and the API call <see cref="IConfiguration.DependsOn"/> is not required.
        /// </summary>
        Global
    }
 
    /// <summary>
    /// Determines a kind of root of the composition.
    /// </summary>
    /// <seealso cref="IConfiguration.Root{T}"/>
    [global::System.Flags]
    internal enum RootKinds
    {
        /// <summary>
        /// Specifies to use the default composition root kind.
        /// </summary>
        Default = RootKinds.Public | RootKinds.Property,
         
        /// <summary>
        /// Specifies to use a <c>public</c> access modifier for the root of the composition.
        /// </summary>
        Public = 1,
         
        /// <summary>
        /// Specifies to use a <c>internal</c> access modifier for the root of the composition.
        /// </summary>
        Internal = 1 << 1,
         
        /// <summary>
        /// Specifies to use a <c>private</c> access modifier for the root of the composition.
        /// </summary>
        Private = 1 << 2,
         
        /// <summary>
        /// Specifies to create a composition root as a property.
        /// </summary>
        Property = 1 << 3,
         
        /// <summary>
        /// Specifies to create a composition root as a method.
        /// </summary>
        Method = 1 << 4,
         
        /// <summary>
        /// Specifies to create a static root of the composition.
        /// </summary>
        Static = 1 << 5,
         
        /// <summary>
        /// Specifies to create a partial root of the composition.
        /// </summary>
        Partial = 1 << 6,
         
        /// <summary>
        /// Specifies to create a exposed root of the composition.
        /// </summary>
        Exposed = 1 << 7,
         
        /// <summary>
        /// Specifies to use a <c>protected</c> access modifier for the root of the composition.
        /// </summary>
        Protected = 1 << 8,
    }
     
    /// <summary>
    /// Represents well known tags.
    /// </summary>
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal partial class Tag
    {
        private static readonly Tag Shared = new Tag();
 
        /// <summary>
        /// Unique tag.
        /// Begins the definition of the binding.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IService&gt;(Tag.Unique).To&lt;Service1&gt;()
        ///     .Bind&lt;IService&gt;(Tag.Unique).To&lt;Service1&gt;()
        ///     .Root&lt;IEnumerable&lt;IService&gt;&gt;("Root");
        /// </code>
        /// </example>
        /// </summary>
        public static readonly Tag Unique = Shared;
 
        /// <summary>
        /// Tag of target implementation type.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IService&gt;(Tag.Type).To&lt;Service&gt;()
        ///     .Root&lt;IService&gt;("Root", typeof(Service));
        /// </code>
        /// </example>
        /// </summary>
        public static readonly Tag Type = Shared;
         
        /// <summary>
        /// This tag allows you to determine which binding will be used for explicit injection for a particular injection site.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind(Tag.On("MyNamespace.Service.Service:dep"))
        ///         .To&lt;Dependency&gt;()
        ///     .Bind().To&lt;Service&gt;()
        ///     .Root&lt;IService&gt;("Root");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="injectionSites">Set of labels for inection each, must be specified in a special format: &lt;namespace&gt;.&lt;type&gt;.&lt;member&gt;[:argument]. The argument is specified only for the constructor and methods. The wildcards &apos;*&apos; and &apos;?&apos; are supported. All names are case-sensitive. The global namespace prefix &apos;global::&apos; must be omitted.</param>
        public static Tag On(params string[] injectionSites) => Shared;
         
        /// <summary>
        /// This tag allows you to determine which binding will be used for explicit injection for a particular constructor argument.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind(Tag.OnConstructorArg&lt;Service&gt;("dep"))
        ///         .To&lt;Dependency&gt;()
        ///     .Bind().To&lt;Service&gt;()
        ///     .Root&lt;IService&gt;("Root");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="argName">The name of the constructor argument.</param>
        public static Tag OnConstructorArg<T>(string argName) => Shared;
         
        /// <summary>
        /// This tag allows you to define which binding will be used for explicit injection for property or field of the type.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind(Tag.OnMember&lt;Service&gt;("DepProperty"))
        ///         .To&lt;Dependency&gt;()
        ///     .Bind().To&lt;Service&gt;()
        ///     .Root&lt;IService&gt;("Root");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="memberName">The name of the type member.</param>
        public static Tag OnMember<T>(string memberName) => Shared;
         
        /// <summary>
        /// This tag allows you to determine which binding will be used for explicit injection for a particular method argument.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind(Tag.OnMethodArg&lt;Service&gt;("DoSomething", "state"))
        ///         .To&lt;Dependency&gt;()
        ///     .Bind().To&lt;Service&gt;()
        ///     .Root&lt;IService&gt;("Root");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="methodName">The name of the type method.</param>
        /// <param name="argName">The name of the method argument.</param>
        public static Tag OnMethodArg<T>(string methodName, string argName) => Shared;
    }
 
    /// <summary>
    /// This abstraction allows a disposable object to be disposed of.
    /// </summary>
    internal interface IOwned
        : global::System.IDisposable
#if NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
        , global::System.IAsyncDisposable
#endif
    {
    }
 
    /// <summary>
    /// Performs accumulation and disposal of disposable objects.
    /// </summary>
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal sealed partial class Owned: global::System.Collections.Generic.List<object>, global::Pure.DI.IOwned
    {
        private volatile bool _isDisposed;
 
        /// <inheritdoc />
        public void Dispose()
        {
            if (_isDisposed)
            {
                return;
            }
 
            _isDisposed = true;
            try
            {
                for (var i = Count - 1; i >= 0; i--)
                {
                    switch (this[i])
                    {
                        case global::Pure.DI.IOwned _:
                            break;
 
                        case global::System.IDisposable disposableInstance:
                            try
                            {
                                disposableInstance.Dispose();
                            }
                            catch (global::System.Exception exception)
                            {
                                OnDisposeException(disposableInstance, exception);
                            }
 
                            break;
 
#if NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
                    case global::System.IAsyncDisposable asyncDisposableInstance:
                        try
                        {
                            var valueTask = asyncDisposableInstance.DisposeAsync();
                            if (!valueTask.IsCompleted)
                            {
                                valueTask.AsTask().Wait();
                            }
                        }
                        catch (global::System.Exception exception)
                        {
                            OnDisposeAsyncException(asyncDisposableInstance, exception);
                        }
                        break;
#endif
                    }
                }
            }
            finally
            {
                Clear();
            }
        }
 
#if NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
        /// <inheritdoc />
        public async global::System.Threading.Tasks.ValueTask DisposeAsync()
        {
            if (_isDisposed)
            {
                return;
            }
 
            _isDisposed = true;
            try
            {
                for (var i = Count - 1; i >= 0; i--)
                {
                    switch (this[i])
                    {
                        case global::Pure.DI.IOwned _:
                            break;
 
                        case global::System.IAsyncDisposable asyncDisposableInstance:
                            try
                            {
                                await asyncDisposableInstance.DisposeAsync();
                            }
                            catch (global::System.Exception exception)
                            {
                                OnDisposeAsyncException(asyncDisposableInstance, exception);
                            }
                            break;
 
                        case global::System.IDisposable disposableInstance:
                            try
                            {
                                disposableInstance.Dispose();
                            }
                            catch (global::System.Exception exception)
                            {
                                OnDisposeException(disposableInstance, exception);
                            }
                            break;
                    }
                }
            }
            finally
            {
                Clear();
            }
        }
#endif
 
 
        /// <summary>
        /// Implement this partial method to handle the exception on disposing.
        /// </summary>
        /// <param name="disposableInstance">The disposable instance.</param>
        /// <param name="exception">Exception occurring during disposal.</param>
        /// <typeparam name="T">The actual type of instance being disposed of.</typeparam>
        partial void OnDisposeException<T>(T disposableInstance, global::System.Exception exception)
            where T : global::System.IDisposable;
         
#if NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER       
        /// <summary>
        /// Implement this partial method to handle the exception on disposing.
        /// </summary>
        /// <param name="asyncDisposableInstance">The disposable instance.</param>
        /// <param name="exception">Exception occurring during disposal.</param>
        /// <typeparam name="T">The actual type of instance being disposed of.</typeparam>
        partial void OnDisposeAsyncException<T>(T asyncDisposableInstance, global::System.Exception exception)
            where T : global::System.IAsyncDisposable;
#endif
    }
     
    /// <summary>
    /// Contains a value and gives the ability to dispose of that value.
    /// </summary>
    /// <typeparam name="T">Type of value owned.</typeparam>
    [global::System.Diagnostics.DebuggerDisplay("{Value}")]
    [global::System.Diagnostics.DebuggerTypeProxy(typeof(global::Pure.DI.Owned<>.DebugView))]
    internal readonly struct Owned<T>: global::Pure.DI.IOwned
    {
        /// <summary>
        /// Own value.
        /// </summary>
        public readonly T Value;
        private readonly global::Pure.DI.IOwned _owned;
 
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        /// <param name="value">Own value.</param>
        /// <param name="owned">The abstraction allows a disposable object to be disposed of.</param>
        public Owned(T value, global::Pure.DI.IOwned owned)
        {
            Value = value;
            _owned = owned;
        }
         
        /// <inheritdoc />
        public void Dispose()
        {
            _owned.Dispose();
        }
         
#if NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
        /// <inheritdoc />
        public global::System.Threading.Tasks.ValueTask DisposeAsync()
        {
            return _owned.DisposeAsync();
        }
#endif
 
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
        [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
        private class DebugView
        {
            private readonly global::Pure.DI.Owned<T> _owned;
 
            public DebugView(global::Pure.DI.Owned<T> owned)
            {
                _owned = owned;
            }
             
            public T Value
            {
                get { return _owned.Value; }
            }
                 
            [global::System.Diagnostics.DebuggerBrowsable(global::System.Diagnostics.DebuggerBrowsableState.Collapsed)]
            public global::Pure.DI.IOwned Owned
            {
                get { return _owned._owned; }
            }
        }
    }
 
    /// <summary>
    /// An API for a Dependency Injection setup.
    /// </summary>
    /// <seealso cref="DI.Setup"/>
    internal interface IConfiguration
    {
        /// <summary>
        /// Begins the binding definition for the implementation type itself, and if the implementation is not an abstract class or structure, for all abstract but NOT special types that are directly implemented.
        /// Special types include:
        /// <list type="bullet">
        /// <item>System.Object</item>
        /// <item>System.Enum</item>
        /// <item>System.MulticastDelegate</item>
        /// <item>System.Delegate</item>
        /// <item>System.Collections.IEnumerable</item>
        /// <item>System.Collections.Generic.IEnumerable&lt;T&gt;</item>
        /// <item>System.Collections.Generic.IList&lt;T&gt;</item>
        /// <item>System.Collections.Generic.ICollection&lt;T&gt;</item>
        /// <item>System.Collections.IEnumerator</item>
        /// <item>System.Collections.Generic.IEnumerator&lt;T&gt;</item>
        /// <item>System.Collections.Generic.IIReadOnlyList&lt;T&gt;</item>
        /// <item>System.Collections.Generic.IReadOnlyCollection&lt;T&gt;</item>
        /// <item>System.IDisposable</item>
        /// <item>System.IAsyncResult</item>
        /// <item>System.AsyncCallback</item>
        /// </list>
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind().To&lt;Service&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind(params object[] tags);
         
        /// <summary>
        /// Begins the definition of the binding.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IService&gt;().To&lt;Service&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <typeparam name="T">The type of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 4 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 4 of dependency to be bound.</typeparam>
        /// <typeparam name="T5">The type 5 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4, T5>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 4 of dependency to be bound.</typeparam>
        /// <typeparam name="T5">The type 5 of dependency to be bound.</typeparam>
        /// <typeparam name="T6">The type 6 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4, T5, T6>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 4 of dependency to be bound.</typeparam>
        /// <typeparam name="T5">The type 5 of dependency to be bound.</typeparam>
        /// <typeparam name="T6">The type 6 of dependency to be bound.</typeparam>
        /// <typeparam name="T7">The type 7 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4, T5, T6, T7>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 4 of dependency to be bound.</typeparam>
        /// <typeparam name="T5">The type 5 of dependency to be bound.</typeparam>
        /// <typeparam name="T6">The type 6 of dependency to be bound.</typeparam>
        /// <typeparam name="T7">The type 7 of dependency to be bound.</typeparam>
        /// <typeparam name="T8">The type 8 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4, T5, T6, T7, T8>(params object[] tags);
 
        /// <summary>
        /// Begins the definition of the binding with <see cref="Root{T}"/> applied.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .RootBind&lt;IService&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <typeparam name="T">The type of dependency to be bound.</typeparam>
        /// <param name="name">Specifies the unique name of the root of the composition. If the value is empty, a private root will be created, which can be used when calling <c>Resolve</c> methods.</param>
        /// <param name="kind">The Optional argument specifying the kind for the root of the Composition.</param>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding. If is is not empty, the first tag is used for the root.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding RootBind<T>(string name = "", RootKinds kind = RootKinds.Default, params object[] tags);
 
        /// <summary>
        /// Indicates the use of some single or multiple setups as base setups by name.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .DependsOn(nameof(CompositionBase));
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="setupNames">A set of names for the basic setups on which this one depends.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="DI.Setup"/>
        IConfiguration DependsOn(params string[] setupNames);
         
        /// <summary>
        /// Specifies a custom generic type argument attribute.
        /// <example>
        /// <code>
        /// [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct)]
        /// class MyGenericTypeArgumentAttribute : Attribute;
        /// 
        /// [MyGenericTypeArgument]
        /// interface TTMy;
        /// 
        /// DI.Setup("Composition")
        ///     .GenericTypeAttribute&lt;MyGenericTypeArgumentAttribute&gt;()
        ///     .Bind&lt;IDependency&lt;TTMy&gt;&gt;().To&lt;Dependency&lt;TTMy&gt;&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <typeparam name="T">The attribute type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="GenericTypeArgumentAttribute"/>
        IConfiguration GenericTypeArgumentAttribute<T>() where T : global::System.Attribute;
 
        /// <summary>
        /// Specifies a custom attribute that overrides the injection type.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .TypeAttribute&lt;MyTypeAttribute&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="typeArgumentPosition">The optional parameter that specifies the position of the type parameter in the attribute constructor. 0 by default. See predefined attribute <see cref="TypeAttribute{T}"/>.</param>
        /// <typeparam name="T">The attribute type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="Pure.DI.TypeAttribute"/>
        IConfiguration TypeAttribute<T>(int typeArgumentPosition = 0) where T : global::System.Attribute;
 
        /// <summary>
        /// Specifies a tag attribute that overrides the injected tag.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .TagAttribute&lt;MyTagAttribute&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="tagArgumentPosition">The optional parameter that specifies the position of the tag parameter in the attribute constructor. 0 by default. See the predefined <see cref="TagAttribute{T}"/> attribute.</param>
        /// <typeparam name="T">The attribute type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="Pure.DI.TagAttribute"/>
        IConfiguration TagAttribute<T>(int tagArgumentPosition = 0) where T : global::System.Attribute;
 
        /// <summary>
        /// Specifies a custom attribute that overrides the injection ordinal.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .OrdinalAttribute&lt;MyOrdinalAttribute&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="ordinalArgumentPosition">The optional parameter that specifies the position of the ordinal parameter in the attribute constructor. 0 by default. See the predefined <see cref="OrdinalAttribute{T}"/> attribute.</param>
        /// <typeparam name="T">The attribute type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="Pure.DI.OrdinalAttribute"/>
        IConfiguration OrdinalAttribute<T>(int ordinalArgumentPosition = 0) where T : global::System.Attribute;
 
        /// <summary>
        /// Overrides the default <see cref="Lifetime"/> for all bindings further down the chain. If not specified, the <see cref="Lifetime.Transient"/> lifetime is used.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .DefaultLifetime(Lifetime.Singleton);
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="lifetime">The default lifetime.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="Lifetime"/>
        /// <seealso cref="IBinding.As"/>
        IConfiguration DefaultLifetime(Pure.DI.Lifetime lifetime);
         
        /// <summary>
        /// Overrides the default <see cref="Lifetime"/> for all bindings can be casted to type <typeparamref name="T"/> further down the chain.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .DefaultLifetime&lt;IMySingleton&gt;(Lifetime.Singleton);
        /// </code>
        /// <code>
        /// DI.Setup("Composition")
        ///     .DefaultLifetime&lt;IMySingleton&gt;(Lifetime.Singleton, "my tag");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="lifetime">The default lifetime.</param>
        /// <param name="tags">Optional argument specifying the binding tags for which it will set the default lifetime. If not specified, the default lifetime will be set for any tags.</param>
        /// <typeparam name="T">The default lifetime will be applied to bindings if the implementation class can be cast to type <typeparamref name="T"/>.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="Lifetime"/>
        /// <seealso cref="IBinding.As"/>
        IConfiguration DefaultLifetime<T>(Pure.DI.Lifetime lifetime, params object[] tags);
         
        /// <summary>
        /// Adds a partial class argument and replaces the default constructor by adding this argument as a parameter. It is only created if this argument is actually used.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Arg&lt;int&gt;("id");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="name">The argument name.</param>
        /// <param name="tags">The optional argument that specifies the tags for the argument.</param>
        /// <typeparam name="T">The argument type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        IConfiguration Arg<T>(string name, params object[] tags);
         
        /// <summary>
        /// Adds a root argument to use as a root parameter.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .RootArg&lt;int&gt;("id");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="name">The argument name.</param>
        /// <param name="tags">The optional argument that specifies the tags for the argument.</param>
        /// <typeparam name="T">The argument type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        IConfiguration RootArg<T>(string name, params object[] tags);
         
        /// <summary>
        /// Specifying the root of the Composition.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Root&lt;Service&gt;("MyService");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="name">Specifies the unique name of the root of the composition. If the value is empty, a private root will be created, which can be used when calling <c>Resolve</c> methods.</param>
        /// <param name="tag">Optional argument specifying the tag for the root of the Composition.</param>
        /// <typeparam name="T">The Composition root type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        IConfiguration Root<T>(string name = "", object tag = null, RootKinds kind = RootKinds.Default);
 
        /// <summary>
        /// Defines a hint for fine-tuning code generation.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Hint(Resolve, "Off");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="hint">The hint type.</param>
        /// <param name="value">The hint value.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="Pure.DI.Hint"/>
        IConfiguration Hint(Hint hint, string value);
 
        /// <summary>
        /// Registers an accumulator for instances.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Accumulate&lt;IDisposable, MyAccumulator&gt;(Lifetime.Transient);
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="lifetimes"><see cref="Lifetime"/> of the instances to be accumulated. Instances with lifetime <see cref="Lifetime.Singleton"/>, <see cref="Lifetime.Scoped"/>, or <see cref="Lifetime.PerResolve"/> only accumulate in an accumulator that is NOT lazily created.</param>
        /// <typeparam name="T">The type of instance. All instances that can be cast to this type will be aacumulated.</typeparam>
        /// <typeparam name="TAccumulator">The type of accumulator. It must have a public constructor without parameters and a <c>Add</c> method with a single argument that allows you to add an instance of type <typeparamref name="T"/>.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="Pure.DI.Hint"/>
        /// <seealso cref="Pure.DI.Lifetime"/>
        IConfiguration Accumulate<T, TAccumulator>(params Lifetime[] lifetimes)
            where TAccumulator: new();
         
        /// <summary>
        /// Specifies a custom generic type argument.
        /// <example>
        /// <code>
        /// interface TTMy;
        /// 
        /// DI.Setup("Composition")
        ///     .GenericTypeArgument&lt;TTMy&gt;()
        ///     .Bind&lt;IDependency&lt;TTMy&gt;&gt;().To&lt;Dependency&lt;TTMy&gt;&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <typeparam name="T">The generic type marker.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        IConfiguration GenericTypeArgument<T>();
    }
 
    /// <summary>
    /// An API for a binding setup.
    /// </summary>
    internal interface IBinding
    {
        /// <summary>
        /// Begins the binding definition for the implementation type itself, and if the implementation is not an abstract class or structure, for all abstract but NOT special types that are directly implemented.
        /// Special types include:
        /// <list type="bullet">
        /// <item>System.Object</item>
        /// <item>System.Enum</item>
        /// <item>System.MulticastDelegate</item>
        /// <item>System.Delegate</item>
        /// <item>System.Collections.IEnumerable</item>
        /// <item>System.Collections.Generic.IEnumerable&lt;T&gt;</item>
        /// <item>System.Collections.Generic.IList&lt;T&gt;</item>
        /// <item>System.Collections.Generic.ICollection&lt;T&gt;</item>
        /// <item>System.Collections.IEnumerator</item>
        /// <item>System.Collections.Generic.IEnumerator&lt;T&gt;</item>
        /// <item>System.Collections.Generic.IIReadOnlyList&lt;T&gt;</item>
        /// <item>System.Collections.Generic.IReadOnlyCollection&lt;T&gt;</item>
        /// <item>System.IDisposable</item>
        /// <item>System.IAsyncResult</item>
        /// <item>System.AsyncCallback</item>
        /// </list>
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind().To&lt;Service&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind(params object[] tags);
         
        /// <summary>
        /// Begins the definition of the binding.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <typeparam name="T">The type of dependency to be bound. Common type markers such as <see cref="TT"/>, <see cref="TTList{T}"/> and others are also supported.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 3 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T5">The type 5 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4, T5>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T5">The type 5 of dependency to be bound.</typeparam>
        /// <typeparam name="T6">The type 6 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4, T5, T6>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T5">The type 5 of dependency to be bound.</typeparam>
        /// <typeparam name="T6">The type 6 of dependency to be bound.</typeparam>
        /// <typeparam name="T7">The type 7 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4, T5, T6, T7>(params object[] tags);
         
        /// <summary>
        /// Begins binding definition for multiple dependencies. See <see cref="Bind{T}"/> for examples.
        /// </summary>
        /// <typeparam name="T1">The type 1 of dependency to be bound.</typeparam>
        /// <typeparam name="T2">The type 2 of dependency to be bound.</typeparam>
        /// <typeparam name="T3">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T4">The type 3 of dependency to be bound.</typeparam>
        /// <typeparam name="T5">The type 5 of dependency to be bound.</typeparam>
        /// <typeparam name="T6">The type 6 of dependency to be bound.</typeparam>
        /// <typeparam name="T7">The type 7 of dependency to be bound.</typeparam>
        /// <typeparam name="T8">The type 8 of dependency to be bound.</typeparam>
        /// <param name="tags">The optional argument that specifies tags for a particular type of dependency binding.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IBinding Bind<T1, T2, T3, T4, T5, T6, T7, T8>(params object[] tags);
 
        /// <summary>
        /// Determines the <see cref="Lifetime"/> of a binding.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().As(Lifetime.Singleton).To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="lifetime">The <see cref="Lifetime"/> of a binding</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        IBinding As(Pure.DI.Lifetime lifetime);
 
        /// <summary>
        /// Defines the binding tags.
        /// <example>
        /// Sometimes it's important to take control of building a dependency graph. For example, when there are multiple implementations of the same contract. In this case, tags will help:
        /// <code>
        /// interface IDependency { }
        ///
        ///
        /// class AbcDependency : IDependency { }
        ///
        ///
        /// class XyzDependency : IDependency { }
        ///
        ///
        /// class Dependency : IDependency { }
        ///
        ///
        /// interface IService
        /// {
        ///     IDependency Dependency1 { get; }
        ///
        ///
        ///     IDependency Dependency2 { get; }
        /// }
        ///
        ///
        /// class Service : IService
        /// {
        ///     public Service(
        ///         [Tag("Abc")] IDependency dependency1,
        ///         [Tag("Xyz")] IDependency dependency2)
        ///     {
        ///         Dependency1 = dependency1;
        ///         Dependency2 = dependency2;
        ///     }
        ///
        ///     public IDependency Dependency1 { get; }
        ///
        ///
        ///     public IDependency Dependency2 { get; }
        /// }
        ///
        ///
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().Tags("Abc").To&lt;AbcDependency&gt;()
        ///     .Bind&lt;IDependency&gt;().Tags("Xyz").To&lt;XyzDependency&gt;()
        ///     .Bind&lt;IService&gt;().To&lt;Service&gt;().Root&lt;IService&gt;("Root");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="tags">The binding tags.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="As"/>
        IBinding Tags(params object[] tags);
 
        /// <summary>
        /// Completes the binding chain by specifying the implementation.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;();
        /// </code>
        /// </example>
        /// </summary>
        /// <typeparam name="T">The implementation type. Also supports generic type markers such as <see cref="TT"/>, <see cref="TTList{T}"/>, and others.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T>();
 
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IService&gt;()
        ///     To(_ =&gt;
        ///     {
        ///         var service = new Service("My Service");
        ///         service.Initialize();
        ///         return service;
        ///     })
        /// </code>
        /// <br/>
        /// another example:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&amp;lt;IService&amp;gt;()
        ///     To(ctx =&amp;gt;
        ///     {
        ///         ctx.Inject&lt;IDependency&gt;(out var dependency);
        ///         return new Service(dependency);
        ///     })
        /// </code>
        /// <br/>
        /// and another example:
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&amp;lt;IService&amp;gt;()
        ///     To(ctx =&amp;gt;
        ///     {
        ///         // Builds up an instance with all necessary dependencies
        ///         ctx.Inject&lt;Service&gt;(out var service);
        ///
        ///
        ///         service.Initialize();
        ///         return service;
        ///     })
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="To{T1,T}()"/>
        /// <seealso cref="To{T1,T2,T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T>(global::System.Func<IContext, T> factory);
         
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a source code statement.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;int&gt;().To&lt;int&gt;("dependencyId")
        ///     .Bind&lt;Func&lt;int, IDependency&gt;&gt;()
        ///         .To&lt;Func&lt;int, IDependency&gt;&gt;(ctx =&gt;
        ///             dependencyId =&gt;
        ///             {
        ///                 ctx.Inject&lt;Dependency&gt;(out var dependency);
        ///                 return dependency;
        ///             });
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="sourceCodeStatement">Source code statement</param>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        IConfiguration To<T>(string sourceCodeStatement);
 
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a simplified factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc. Each parameter of this factory method represents a dependency injection. Starting with C# 10, you can also put the <see cref="TagAttribute"/> in front of the parameter to specify the tag of the injected dependency.
        /// <example>
        /// <code>
        /// DI.Setup(nameof(Composition))
        ///     .Bind&lt;IDependency&gt;().To((
        ///         Dependency dependency) =&gt;
        ///     {
        ///         dependency.Initialize();
        ///         return dependency;
        ///     });
        /// </code>
        /// A variant using <see cref="TagAttribute"/>:
        /// <code>
        /// DI.Setup(nameof(Composition))
        ///     .Bind&lt;IDependency&gt;().To((
        ///         [Tag(&quot;some tag&quot;)] Dependency dependency) =&gt;
        ///     {
        ///         dependency.Initialize();
        ///         return dependency;
        ///     });
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T1">Type #1 of injected dependency.</typeparam>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T1, T>(global::System.Func<T1, T> factory);
 
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a simplified factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc. Each parameter of this factory method represents a dependency injection. Starting with C# 10, you can also put the <see cref="TagAttribute"/> in front of the parameter to specify the tag of the injected dependency.
        /// <example>
        /// <code>
        /// DI.Setup(nameof(Composition))
        ///     .Bind&lt;IDependency&gt;().To((
        ///         Dependency dependency,
        ///         DateTimeOffset time) =&gt;
        ///     {
        ///         dependency.Initialize(time);
        ///         return dependency;
        ///     });
        /// </code>
        /// A variant using <see cref="TagAttribute"/>:
        /// <code>
        /// DI.Setup(nameof(Composition))
        ///     .Bind(&quot;now datetime&quot;).To(_ =&gt; DateTimeOffset.Now)
        ///     .Bind&lt;IDependency&gt;().To((
        ///         Dependency dependency,
        ///         [Tag(&quot;now datetime&quot;)] DateTimeOffset time) =&gt;
        ///     {
        ///         dependency.Initialize(time);
        ///         return dependency;
        ///     });
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T1">Type #1 of injected dependency.</typeparam>
        /// <typeparam name="T2">Type #2 of injected dependency.</typeparam>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T1, T2, T>(global::System.Func<T1, T2, T> factory);
         
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a simplified factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc. Each parameter of this factory method represents a dependency injection. Starting with C# 10, you can also put the <see cref="TagAttribute"/> in front of the parameter to specify the tag of the injected dependency.
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T1">Type #1 of injected dependency.</typeparam>
        /// <typeparam name="T2">Type #2 of injected dependency.</typeparam>
        /// <typeparam name="T3">Type #3 of injected dependency.</typeparam>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T1, T2, T3, T>(global::System.Func<T1, T2, T3, T> factory);
         
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a simplified factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc. Each parameter of this factory method represents a dependency injection. Starting with C# 10, you can also put the <see cref="TagAttribute"/> in front of the parameter to specify the tag of the injected dependency.
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T1">Type #1 of injected dependency.</typeparam>
        /// <typeparam name="T2">Type #2 of injected dependency.</typeparam>
        /// <typeparam name="T3">Type #3 of injected dependency.</typeparam>
        /// <typeparam name="T4">Type #4 of injected dependency.</typeparam>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T1, T2, T3, T4, T>(global::System.Func<T1, T2, T3, T4, T> factory);
         
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a simplified factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc. Each parameter of this factory method represents a dependency injection. Starting with C# 10, you can also put the <see cref="TagAttribute"/> in front of the parameter to specify the tag of the injected dependency.
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T1">Type #1 of injected dependency.</typeparam>
        /// <typeparam name="T2">Type #2 of injected dependency.</typeparam>
        /// <typeparam name="T3">Type #3 of injected dependency.</typeparam>
        /// <typeparam name="T4">Type #4 of injected dependency.</typeparam>
        /// <typeparam name="T5">Type #5 of injected dependency.</typeparam>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T1, T2, T3, T4, T5, T>(global::System.Func<T1, T2, T3, T4, T5, T> factory);
         
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a simplified factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc. Each parameter of this factory method represents a dependency injection. Starting with C# 10, you can also put the <see cref="TagAttribute"/> in front of the parameter to specify the tag of the injected dependency.
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T1">Type #1 of injected dependency.</typeparam>
        /// <typeparam name="T2">Type #2 of injected dependency.</typeparam>
        /// <typeparam name="T3">Type #3 of injected dependency.</typeparam>
        /// <typeparam name="T4">Type #4 of injected dependency.</typeparam>
        /// <typeparam name="T5">Type #5 of injected dependency.</typeparam>
        /// <typeparam name="T6">Type #6 of injected dependency.</typeparam>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T1, T2, T3, T4, T5, T6, T>(global::System.Func<T1, T2, T3, T4, T5, T6, T> factory);
         
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a simplified factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc. Each parameter of this factory method represents a dependency injection. Starting with C# 10, you can also put the <see cref="TagAttribute"/> in front of the parameter to specify the tag of the injected dependency.
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T1">Type #1 of injected dependency.</typeparam>
        /// <typeparam name="T2">Type #2 of injected dependency.</typeparam>
        /// <typeparam name="T3">Type #3 of injected dependency.</typeparam>
        /// <typeparam name="T4">Type #4 of injected dependency.</typeparam>
        /// <typeparam name="T5">Type #5 of injected dependency.</typeparam>
        /// <typeparam name="T6">Type #6 of injected dependency.</typeparam>
        /// <typeparam name="T7">Type #7 of injected dependency.</typeparam>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T1, T2, T3, T4, T5, T6, T7, T>(global::System.Func<T1, T2, T3, T4, T5, T6, T7, T> factory);
         
        /// <summary>
        /// Completes the binding chain by specifying the implementation using a simplified factory method. It allows you to manually create an instance, call the necessary methods, initialize properties, fields, etc. Each parameter of this factory method represents a dependency injection. Starting with C# 10, you can also put the <see cref="TagAttribute"/> in front of the parameter to specify the tag of the injected dependency.
        /// </summary>
        /// <param name="factory">An expression for manually creating and initializing an instance.</param>
        /// <typeparam name="T1">Type #1 of injected dependency.</typeparam>
        /// <typeparam name="T2">Type #2 of injected dependency.</typeparam>
        /// <typeparam name="T3">Type #3 of injected dependency.</typeparam>
        /// <typeparam name="T4">Type #4 of injected dependency.</typeparam>
        /// <typeparam name="T5">Type #5 of injected dependency.</typeparam>
        /// <typeparam name="T6">Type #6 of injected dependency.</typeparam>
        /// <typeparam name="T7">Type #7 of injected dependency.</typeparam>
        /// <typeparam name="T8">Type #7 of injected dependency.</typeparam>
        /// <typeparam name="T">The implementation type.</typeparam>
        /// <returns>Reference to the setup continuation chain.</returns>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="To{T}(System.Func{Pure.DI.IContext,T})"/>
        /// <seealso cref="To{T}()"/>
        /// <seealso cref="Tags"/>
        /// <seealso cref="As"/>
        IConfiguration To<T1, T2, T3, T4, T5, T6, T7, T8, T>(global::System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T> factory);
    }
 
    /// <summary>
    /// Injection context. Cannot be used outside of the binding setup.
    /// </summary>
    internal interface IContext
    {
        /// <summary>
        /// The tag that was used to inject the current object in the object graph. Cannot be used outside of the binding setup. See also <see cref="IBinding.Tags"/>
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;Lazy&lt;TT&gt;&gt;()
        ///     .To(ctx =&gt;
        ///     {
        ///         ctx.Inject&lt;Func&lt;TT&gt;&gt;(ctx.Tag, out var func);
        ///         return new Lazy&lt;TT&gt;(func, false);
        ///     };
        /// </code>
        /// </example>
        /// </summary>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        /// <seealso cref="IBinding.Tags"/>
        object Tag { get; }
 
        /// <summary>
        /// The types of consumers for which the instance is created. Cannot be used outside of the binding setup. Guaranteed to contain at least one element.
        /// </summary>
        /// <seealso cref="IConfiguration.Bind{T}"/>
        Type[] ConsumerTypes { get; }
 
        /// <summary>
        /// Injects an instance of type <c>T</c>. Cannot be used outside of the binding setup.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IService&gt;()
        ///     To(ctx =&gt;
        ///     {
        ///         ctx.Inject&lt;IDependency&gt;(out var dependency);
        ///         return new Service(dependency);
        ///     })
        /// </code>
        /// <br/>
        /// and another example:<br/>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IService&gt;()
        ///     To(ctx =&gt;
        ///     {
        ///         // Builds up an instance with all necessary dependencies
        ///         ctx.Inject&lt;Service&gt;(out var service);
        ///
        ///
        ///         service.Initialize();
        ///         return service;
        ///     })
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="value">Injectable instance.</param>.
        /// <typeparam name="T">Instance type.</typeparam>
        /// <seealso cref="IBinding.To{T}(System.Func{Pure.DI.IContext,T})"/>
        void Inject<T>(out T value);
 
        /// <summary>
        /// Injects an instance of type <c>T</c> marked with a tag. Cannot be used outside of the binding setup.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IService&gt;()
        ///     To(ctx =&gt;
        ///     {
        ///         ctx.Inject&lt;IDependency&gt;("MyTag", out var dependency);
        ///         return new Service(dependency);
        ///     })
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="tag">The injection tag. See also <see cref="IBinding.Tags"/></param>.
        /// <param name="value">Injectable instance.</param>.
        /// <typeparam name="T">Instance type.</typeparam>
        /// <seealso cref="IBinding.To{T}(System.Func{Pure.DI.IContext,T})"/>
        void Inject<T>(object tag, out T value);
 
        /// <summary>
        /// Builds up of an existing object. In other words, injects the necessary dependencies via methods, properties, or fields into an existing object. Cannot be used outside of the binding setup.
        /// <example>
        /// <code>
        /// DI.Setup("Composition")
        ///     .Bind&lt;IService&gt;()
        ///     To(ctx =&gt;
        ///     {
        ///         var service = new Service();
        ///         // Initialize an instance with all necessary dependencies
        ///         ctx.BuildUp(service);
        ///
        ///
        ///         return service;
        ///     })
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="value">An existing object for which the injection(s) is to be performed.</param>
        /// <typeparam name="T">Object type.</typeparam>
        void BuildUp<T>(T value);
    }
     
    /// <summary>
    /// An API for a Dependency Injection setup.
    /// </summary>
    /// <seealso cref="Setup"/>
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal static class DI
    {
        /// <summary>
        /// Begins the definitions of the Dependency Injection setup chain.
        /// <example>
        /// <code>
        /// interface IDependency;
        ///
        ///
        /// class Dependency : IDependency;
        ///
        ///
        /// interface IService;
        ///
        ///
        /// class Service(IDependency dependency) : IService;
        ///
        ///
        /// DI.Setup("Composition")
        ///   .Bind&lt;IDependency&gt;().To&lt;Dependency&gt;()
        ///   .Bind&lt;IService&gt;().To&lt;Service&gt;()
        ///   .Root&lt;IService&gt;("Root");
        /// </code>
        /// </example>
        /// </summary>
        /// <param name="compositionTypeName">An optional argument specifying the partial class name to generate.</param>
        /// <param name="kind">An optional argument specifying the kind of setup. Please <see cref="Pure.DI.CompositionKind"/> for details. It defaults to <c>Public</c>.</param>
        /// <returns>Reference to the setup continuation chain.</returns>
        internal static IConfiguration Setup(string compositionTypeName = "", CompositionKind kind = CompositionKind.Public)
        {
            return Configuration.Shared;
        }
 
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
        [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
        private sealed class Configuration : IConfiguration
        {
            public static readonly IConfiguration Shared = new Configuration();
 
            private Configuration() { }
             
            /// <inheritdoc />
            public IBinding Bind(params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T>(params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2>(params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3>(params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4>(params object[] tags)
            {
                return Binding.Shared;
            }
             
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4, T5>(params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4, T5, T6>(params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4, T5, T6, T7>(params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4, T5, T6, T7, T8>(params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IBinding RootBind<T>(string name = "", RootKinds kind = RootKinds.Default, params object[] tags)
            {
                return Binding.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration DependsOn(params string[] setupNames)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration GenericTypeArgumentAttribute<T>() where T : global::System.Attribute
            {
                return Configuration.Shared;
            }
             
            /// <inheritdoc />
            public IConfiguration TypeAttribute<T>(int typeArgumentPosition = 0) where T : global::System.Attribute
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration TagAttribute<T>(int tagArgumentPosition = 0) where T : global::System.Attribute
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration OrdinalAttribute<T>(int ordinalArgumentPosition = 0) where T : global::System.Attribute
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration DefaultLifetime(Pure.DI.Lifetime lifetime)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration DefaultLifetime<T>(Lifetime lifetime, params object[] tags)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration Arg<T>(string name, params object[] tags)
            {
                return Configuration.Shared;
            }
             
            /// <inheritdoc />
            public IConfiguration RootArg<T>(string name, params object[] tags)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration Root<T>(string name, object tag, RootKinds rootKind)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration Hint(Hint hint, string value)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration Accumulate<T, TAccumulator>(params Lifetime[] lifetimes)
                where TAccumulator: new()
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration GenericTypeArgument<T>()
            {
                return Configuration.Shared;
            }
        }
 
        private sealed class Binding : IBinding
        {
            public static readonly IBinding Shared = new Binding();
 
            private Binding() { }
             
            /// <inheritdoc />
            public IBinding Bind(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T>(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2>(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3>(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4>(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4, T5>(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4, T5, T6>(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4, T5, T6, T7>(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Bind<T1, T2, T3, T4, T5, T6, T7, T8>(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding As(Pure.DI.Lifetime lifetime)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IBinding Tags(params object[] tags)
            {
                return Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T>()
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T>(global::System.Func<IContext, T> factory)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T>(string sourceCodeStatement)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T1, T>(global::System.Func<T1, T> factory)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T1, T2, T>(global::System.Func<T1, T2, T> factory)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T1, T2, T3, T>(global::System.Func<T1, T2, T3, T> factory)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T1, T2, T3, T4, T>(Func<T1, T2, T3, T4, T> factory)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T1, T2, T3, T4, T5, T>(Func<T1, T2, T3, T4, T5, T> factory)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T1, T2, T3, T4, T5, T6, T>(Func<T1, T2, T3, T4, T5, T6, T> factory)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T1, T2, T3, T4, T5, T6, T7, T>(Func<T1, T2, T3, T4, T5, T6, T7, T> factory)
            {
                return Configuration.Shared;
            }
 
            /// <inheritdoc />
            public IConfiguration To<T1, T2, T3, T4, T5, T6, T7, T8, T>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T> factory)
            {
                return Configuration.Shared;
            }
        }
    }
     
    /// <summary>
    /// For internal use.
    /// </summary>
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    [global::System.Runtime.InteropServices.StructLayout(global::System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 1)]
    internal struct Pair<TKey, TValue>
    {
        public readonly TKey Key;
        public readonly TValue Value;
 
        public Pair(TKey key, TValue value)
        {
            Key = key;
            Value = value;
        }
 
        public override string ToString()
        {
            return Key?.ToString() ?? "empty" + " = " + Value.ToString();
        }
    }
     
    /// <summary>
    /// For internal use.
    /// </summary>
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal static class Buckets<TKey, TValue>
    {
        public static uint GetDivisor(uint count)
        {
            return count < 2 ? count : count << 1;
        }
 
        public static Pair<TKey, TValue>[] Create(
            uint divisor,
            out int bucketSize,
            Pair<TKey, TValue>[] pairs)
        {
            bucketSize = 0;
            int[] bucketSizes = new int[divisor];
            for (int i = 0; i < pairs.Length; i++)
            {
                int bucket = (int)(((uint)global::System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(pairs[i].Key)) % divisor);
                int size = bucketSizes[bucket] + 1;
                bucketSizes[bucket] = size;
                if (size > bucketSize)
                {
                    bucketSize = size;
                }
            }
             
            Pair<TKey, TValue>[] buckets = new Pair<TKey, TValue>[divisor * bucketSize];
            for (int i = 0; i < pairs.Length; i++)
            {
                int bucket = (int)(((uint)global::System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(pairs[i].Key)) % divisor);
                var index = bucketSizes[bucket];
                buckets[bucket * bucketSize + bucketSize - index] = pairs[i];
                bucketSizes[bucket] = index - 1;
            }
             
            return buckets;
        }
    }
 
    /// <summary>
    /// Abstract dependency resolver.
    /// </summary>
    /// <typeparam name="TComposite">The composition type.</typeparam>
    /// <typeparam name="T">The type of the composition root.</typeparam>
    internal interface IResolver<TComposite, out T>
    {
        /// <summary>
        /// Resolves the composition root.
        /// </summary>
        /// <param name="composite">The composition.</param>
        /// <returns>A composition root.</returns>
        T Resolve(TComposite composite);
         
        /// <summary>
        /// Resolves the composition root by type and tag.
        /// </summary>
        /// <param name="composite">The composition.</param>
        /// <param name="tag">The tag of a composition root.</param>
        /// <returns>A composition root.</returns>
        T ResolveByTag(TComposite composite, object tag);
    }
}
#pragma warning restore
#endif
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140
0141
0142
0143
0144
0145
0146
0147
0148
0149
0150
0151
0152
0153
0154
0155
0156
0157
0158
0159
0160
0161
0162
0163
0164
0165
0166
0167
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177
0178
0179
0180
0181
0182
0183
0184
0185
0186
0187
0188
0189
0190
0191
0192
0193
0194
0195
0196
0197
0198
0199
0200
0201
0202
0203
0204
0205
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215
0216
0217
0218
0219
0220
0221
0222
0223
0224
0225
0226
0227
0228
0229
0230
0231
0232
0233
0234
0235
0236
0237
0238
0239
0240
0241
0242
0243
0244
0245
0246
0247
0248
0249
0250
0251
0252
0253
0254
0255
0256
0257
0258
0259
0260
0261
0262
0263
0264
0265
0266
0267
0268
0269
0270
0271
0272
0273
0274
0275
0276
0277
0278
0279
0280
0281
0282
0283
0284
0285
0286
0287
0288
0289
0290
0291
0292
0293
0294
0295
0296
0297
0298
0299
0300
0301
0302
0303
0304
0305
0306
0307
0308
0309
0310
0311
0312
0313
0314
0315
0316
0317
0318
0319
0320
0321
0322
0323
0324
0325
0326
0327
0328
0329
0330
0331
0332
0333
0334
0335
0336
0337
0338
0339
0340
0341
0342
0343
0344
0345
0346
0347
0348
0349
0350
0351
0352
0353
0354
0355
0356
0357
0358
0359
0360
0361
0362
0363
0364
0365
0366
0367
0368
0369
0370
0371
0372
0373
0374
0375
0376
0377
0378
0379
0380
0381
0382
0383
0384
0385
0386
0387
0388
0389
0390
0391
0392
0393
0394
0395
0396
0397
0398
0399
0400
0401
0402
0403
0404
0405
0406
0407
0408
0409
0410
0411
0412
0413
0414
0415
0416
0417
0418
0419
0420
0421
0422
0423
0424
0425
0426
0427
0428
0429
0430
0431
0432
0433
0434
0435
0436
0437
0438
0439
0440
0441
0442
0443
0444
0445
0446
0447
0448
0449
0450
0451
0452
0453
0454
0455
0456
0457
0458
0459
0460
0461
0462
0463
0464
0465
0466
0467
0468
0469
0470
0471
0472
0473
0474
0475
0476
0477
0478
0479
0480
0481
0482
0483
0484
0485
0486
0487
0488
0489
0490
0491
0492
0493
0494
0495
0496
0497
0498
0499
0500
0501
0502
0503
0504
0505
0506
0507
0508
0509
0510
0511
0512
0513
0514
0515
0516
0517
0518
0519
0520
0521
0522
0523
0524
0525
0526
0527
0528
0529
0530
0531
0532
0533
0534
0535
0536
0537
0538
0539
0540
0541
0542
0543
0544
0545
0546
0547
0548
0549
0550
0551
0552
0553
0554
0555
0556
0557
0558
0559
0560
0561
0562
0563
0564
0565
0566
0567
0568
0569
0570
0571
0572
0573
0574
0575
0576
0577
0578
0579
0580
0581
0582
0583
0584
0585
0586
0587
0588
0589
0590
0591
0592
0593
0594
0595
0596
0597
0598
0599
0600
0601
0602
0603
0604
0605
0606
0607
0608
0609
0610
0611
0612
0613
0614
0615
0616
0617
0618
0619
0620
0621
0622
0623
0624
0625
0626
0627
0628
0629
0630
0631
0632
0633
0634
0635
0636
0637
0638
0639
0640
0641
0642
0643
0644
0645
0646
0647
0648
0649
0650
0651
0652
0653
0654
0655
0656
0657
0658
0659
0660
0661
0662
0663
0664
0665
0666
0667
0668
0669
0670
0671
0672
0673
0674
0675
0676
0677
0678
0679
0680
0681
0682
0683
0684
0685
0686
0687
0688
0689
0690
0691
0692
0693
0694
0695
0696
0697
0698
0699
0700
0701
0702
0703
0704
0705
0706
0707
0708
0709
0710
0711
0712
0713
0714
0715
0716
0717
0718
0719
0720
0721
0722
0723
0724
0725
0726
0727
0728
0729
0730
0731
0732
0733
0734
0735
0736
0737
0738
0739
0740
0741
0742
0743
0744
0745
0746
0747
0748
0749
0750
0751
0752
0753
0754
0755
0756
0757
0758
0759
0760
0761
0762
0763
0764
0765
0766
0767
0768
0769
0770
0771
0772
0773
0774
0775
0776
0777
0778
0779
0780
0781
0782
0783
0784
0785
0786
0787
0788
0789
0790
0791
0792
0793
0794
0795
0796
0797
0798
0799
0800
0801
0802
0803
0804
0805
0806
0807
0808
0809
0810
0811
0812
0813
0814
0815
0816
0817
0818
0819
0820
0821
0822
0823
0824
0825
0826
0827
0828
0829
0830
0831
0832
0833
0834
0835
0836
0837
0838
0839
0840
0841
0842
0843
0844
0845
0846
0847
0848
0849
0850
0851
0852
0853
0854
0855
0856
0857
0858
0859
0860
0861
0862
0863
0864
0865
0866
0867
0868
0869
0870
0871
0872
0873
0874
0875
0876
0877
0878
0879
0880
0881
0882
0883
0884
0885
0886
0887
0888
0889
0890
0891
0892
0893
0894
0895
0896
0897
0898
0899
0900
0901
0902
0903
0904
0905
0906
0907
0908
0909
0910
0911
0912
0913
0914
0915
0916
0917
0918
0919
0920
0921
0922
0923
0924
0925
0926
0927
0928
0929
0930
0931
0932
0933
0934
0935
0936
0937
0938
0939
0940
0941
0942
0943
0944
0945
0946
0947
0948
0949
0950
0951
0952
0953
0954
0955
0956
0957
0958
0959
0960
0961
0962
0963
0964
0965
0966
0967
0968
0969
0970
0971
0972
0973
0974
0975
0976
0977
0978
0979
0980
0981
0982
0983
0984
0985
0986
0987
0988
0989
0990
0991
0992
0993
0994
0995
0996
0997
0998
0999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
// <auto-generated/>
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V2
#pragma warning disable
namespace Pure.DI
{   
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT1 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS1 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE1 { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable1: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable1: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable1<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable1<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable1<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator1<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection1<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList1<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet1<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer1<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer1<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary1<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable1<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver1<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection1<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList1<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList1<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet1<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue1<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack1<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT2 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS2 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE2 { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable2: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable2: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable2<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable2<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable2<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator2<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection2<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList2<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet2<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer2<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer2<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary2<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable2<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver2<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection2<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList2<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList2<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet2<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue2<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack2<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT3 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS3 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE3 { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable3: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable3: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable3<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable3<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable3<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator3<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection3<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList3<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet3<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer3<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer3<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary3<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable3<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver3<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection3<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList3<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList3<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet3<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue3<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack3<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT4 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS4 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE4 { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable4: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable4: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable4<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable4<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable4<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator4<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection4<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList4<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet4<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer4<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer4<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary4<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable4<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver4<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection4<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList4<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList4<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet4<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue4<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack4<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT5 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS5 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE5 { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable5: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable5: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable5<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable5<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable5<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator5<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection5<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList5<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet5<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer5<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer5<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary5<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable5<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver5<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection5<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList5<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList5<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet5<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue5<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack5<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT6 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS6 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE6 { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable6: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable6: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable6<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable6<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable6<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator6<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection6<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList6<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet6<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer6<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer6<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary6<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable6<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver6<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection6<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList6<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList6<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet6<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue6<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack6<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT7 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS7 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE7 { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable7: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable7: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable7<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable7<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable7<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator7<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection7<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList7<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet7<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer7<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer7<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary7<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable7<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver7<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection7<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList7<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList7<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet7<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue7<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack7<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT8 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS8 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE8 { }
 
#if !NET35 && !NET20
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IDisposable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDisposable8: global::System.IDisposable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable8: global::System.IComparable { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IComparable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparable8<in T>: global::System.IComparable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IEquatable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEquatable8<T>: global::System.IEquatable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerable8<out T>: global::System.Collections.Generic.IEnumerable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEnumerator}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEnumerator8<out T>: global::System.Collections.Generic.IEnumerator<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ICollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTCollection8<T>: global::System.Collections.Generic.ICollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTList8<T>: global::System.Collections.Generic.IList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.ISet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTSet8<T>: global::System.Collections.Generic.ISet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTComparer8<in T>: global::System.Collections.Generic.IComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IEqualityComparer}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTEqualityComparer8<in T>: global::System.Collections.Generic.IEqualityComparer<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IDictionary}TKey, TValue}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTDictionary8<TKey, TValue>: global::System.Collections.Generic.IDictionary<TKey, TValue> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObservable}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObservable8<out T>: global::System.IObservable<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.IObserver}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTObserver8<in T>: global::System.IObserver<T> { }
     
#endif
 
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyCollection}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyCollection8<out T>: global::System.Collections.Generic.IReadOnlyCollection<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Generic.IReadOnlyList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTReadOnlyList8<out T>: global::System.Collections.Generic.IReadOnlyList<T> { }
     
#endif
 
#if NET || NETCOREAPP
 
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableList}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableList8<T>: global::System.Collections.Immutable.IImmutableList<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableSet}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableSet8<T>: global::System.Collections.Immutable.IImmutableSet<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableQueue}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableQueue8<T>: global::System.Collections.Immutable.IImmutableQueue<T> { }
     
    /// <summary>
    /// Represents the generic type arguments marker for <see cref="global::System.Collections.Immutable.IImmutableStack}T}"/>.
    /// </summary>
    [GenericTypeArgument]
    internal interface TTImmutableStack8<T>: global::System.Collections.Immutable.IImmutableStack<T> { }
     
#endif
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT9 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS9 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE9 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT10 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS10 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE10 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT11 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS11 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE11 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT12 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS12 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE12 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT13 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS13 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE13 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT14 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS14 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE14 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT15 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS15 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE15 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a reference type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal abstract class TT16 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a value type.
    /// </summary>
    [GenericTypeArgument]
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
#endif
    internal struct TTS16 { }
 
    /// <summary>
    /// Represents the generic type arguments marker for a enum type.
    /// </summary>
    [GenericTypeArgument]
    internal enum TTE16 { }
 
}
#pragma warning restore
#endif
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
// <auto-generated/>
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V2
#pragma warning disable
 
namespace Pure.DI
{
    internal static class Default
    {
        [global::System.Diagnostics.Conditional("A2768DE22DE3E430C9653990D516CC9B")]
        private static void Setup()
        {
            DI.Setup("", CompositionKind.Global)
                .GenericTypeArgumentAttribute<GenericTypeArgumentAttribute>()
                .TypeAttribute<TypeAttribute>()
                .TagAttribute<TagAttribute>()
                .OrdinalAttribute<OrdinalAttribute>()
                .Accumulate<global::System.IDisposable, Owned>(
                    Lifetime.Transient,
                    Lifetime.PerResolve,
                    Lifetime.PerBlock)
#if NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
                .Accumulate<global::System.IAsyncDisposable, Owned>(
                    Lifetime.Transient,
                    Lifetime.PerResolve,
                    Lifetime.PerBlock)
#endif
                .Bind<IOwned>().To((Owned owned) => owned)
                .Bind<Owned<TT>>()
                    .As(Lifetime.PerBlock)
                    .To(ctx => {
                        // Creates the owner of an instance
                        ctx.Inject<IOwned>(out var owned);
                        ctx.Inject<TT>(ctx.Tag, out var value);
                        return new Owned<TT>(value, owned);
                    })
                .Bind<global::System.Func<TT>>()
                    .As(Lifetime.PerBlock)
                    .To(ctx => new global::System.Func<TT>(() =>
                    {
                        ctx.Inject<TT>(ctx.Tag, out var value);
                        return value;
                    }))
                .Bind<global::System.Collections.Generic.IComparer<TT>>()
                .Bind<global::System.Collections.Generic.Comparer<TT>>()
                    .To(_ => global::System.Collections.Generic.Comparer<TT>.Default)
                .Bind<global::System.Collections.Generic.IEqualityComparer<TT>>()
                .Bind<global::System.Collections.Generic.EqualityComparer<TT>>()
                    .To(_ => global::System.Collections.Generic.EqualityComparer<TT>.Default)
#if NETSTANDARD || NET || NETCOREAPP || NET40_OR_GREATER
                .Bind<global::System.Lazy<TT>>()
                    .To(ctx =>
                    {
                        // Injects an instance factory
                        ctx.Inject<global::System.Func<TT>>(ctx.Tag, out var factory);
                        // Creates an instance that supports lazy initialization
                        return new global::System.Lazy<TT>(factory, true);
                    })
                .Bind<global::System.Threading.CancellationToken>().To(_ => global::System.Threading.CancellationToken.None)
                .Bind<global::System.Threading.Tasks.TaskScheduler>()
                    .To(_ => global::System.Threading.Tasks.TaskScheduler.Default)
                .Bind<global::System.Threading.Tasks.TaskCreationOptions>()
                    .To(_ => global::System.Threading.Tasks.TaskCreationOptions.None)
                .Bind<global::System.Threading.Tasks.TaskContinuationOptions>()
                    .To(_ => global::System.Threading.Tasks.TaskContinuationOptions.None)
                .Bind<global::System.Threading.Tasks.TaskFactory>().As(Lifetime.PerBlock)
                    .To((global::System.Threading.CancellationToken cancellationToken, global::System.Threading.Tasks.TaskCreationOptions taskCreationOptions, global::System.Threading.Tasks.TaskContinuationOptions taskContinuationOptions, global::System.Threading.Tasks.TaskScheduler taskScheduler) =>
                    new global::System.Threading.Tasks.TaskFactory(cancellationToken, taskCreationOptions, taskContinuationOptions, taskScheduler))
                .Bind<global::System.Threading.Tasks.TaskFactory<TT>>().As(Lifetime.PerBlock)
                    .To((global::System.Threading.CancellationToken cancellationToken, global::System.Threading.Tasks.TaskCreationOptions taskCreationOptions, global::System.Threading.Tasks.TaskContinuationOptions taskContinuationOptions, global::System.Threading.Tasks.TaskScheduler taskScheduler) =>
                    new global::System.Threading.Tasks.TaskFactory<TT>(cancellationToken, taskCreationOptions, taskContinuationOptions, taskScheduler))
                .Bind<global::System.Threading.Tasks.Task<TT>>()
                    .To(ctx =>
                    {
                        // Injects an instance factory
                        ctx.Inject(ctx.Tag, out global::System.Func<TT> factory);
                        // Injects a task factory creating and scheduling task objects
                        ctx.Inject(out global::System.Threading.Tasks.TaskFactory<TT> taskFactory);
                        // Creates and starts a task using the instance factory
                        return taskFactory.StartNew(factory);
                    })
#endif               
#if NETSTANDARD2_1_OR_GREATER || NET || NETCOREAPP
                .Bind<global::System.Threading.Tasks.ValueTask<TT>>()
                    .To(ctx =>
                    {
                        ctx.Inject(ctx.Tag, out TT value);
                        // Initializes a new instance of the ValueTask class using the supplied instance
                        return new global::System.Threading.Tasks.ValueTask<TT>(value);
                    })
#endif               
#if NETSTANDARD || NET || NETCOREAPP
                .Bind<global::System.Lazy<TT, TT1>>()
                    .To(ctx =>
                    {
                        // Injects an instance factory
                        ctx.Inject<global::System.Func<TT>>(ctx.Tag, out var factory);
                        // Injects a metadata
                        ctx.Inject<TT1>(ctx.Tag, out var metadata);
                        return new global::System.Lazy<TT, TT1>(factory, metadata, true);
                    })
#endif
                // Collections
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP2_1_OR_GREATER
                .Bind<global::System.Memory<TT>>()
                    .To((TT[] arr) => new global::System.Memory<TT>(arr))
                .Bind<global::System.ReadOnlyMemory<TT>>()
                    .To((TT[] arr) => new global::System.ReadOnlyMemory<TT>(arr))
                .Bind<global::System.Buffers.MemoryPool<TT>>()
                    .To(_ => global::System.Buffers.MemoryPool<TT>.Shared)
                .Bind<global::System.Buffers.ArrayPool<TT>>()
                    .To(_ => global::System.Buffers.ArrayPool<TT>.Shared)
#endif
                .Bind<global::System.Collections.Generic.IList<TT>>()
                .Bind<global::System.Collections.Generic.ICollection<TT>>()
                .Bind<global::System.Collections.Generic.List<TT>>()
                    .To((TT[] arr) => new global::System.Collections.Generic.List<TT>(arr))
                .Bind<global::System.Collections.ObjectModel.Collection<TT>>()
                    .To((TT[] arr) => new global::System.Collections.ObjectModel.Collection<TT>(arr))
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
                .Bind<global::System.Collections.Generic.IReadOnlyCollection<TT>>()
                .Bind<global::System.Collections.Generic.IReadOnlyList<TT>>()
#endif
                .Bind<global::System.Collections.ObjectModel.ReadOnlyCollection<TT>>()
                    .To((TT[] arr) => new global::System.Collections.ObjectModel.ReadOnlyCollection<TT>(arr))
#if NETSTANDARD1_1_OR_GREATER || NET || NETCOREAPP || NET40_OR_GREATER
                .Bind<global::System.Collections.Concurrent.IProducerConsumerCollection<TT>>()
                .Bind<global::System.Collections.Concurrent.ConcurrentBag<TT>>()
                    .To((TT[] arr) => new global::System.Collections.Concurrent.ConcurrentBag<TT>(arr))
                .Bind<global::System.Collections.Concurrent.ConcurrentQueue<TT>>()
                    .To((TT[] arr) => new global::System.Collections.Concurrent.ConcurrentQueue<TT>(arr))
                .Bind<global::System.Collections.Concurrent.ConcurrentStack<TT>>()
                    .To((TT[] arr) => new global::System.Collections.Concurrent.ConcurrentStack<TT>(arr))
                .Bind<global::System.Collections.Concurrent.BlockingCollection<TT>>()
                    .To((global::System.Collections.Concurrent.ConcurrentBag<TT> concurrentBag) =>
                    new global::System.Collections.Concurrent.BlockingCollection<TT>(concurrentBag))
#endif
#if NETSTANDARD || NET || NETCOREAPP || NET40_OR_GREATER
                .Bind<global::System.Collections.Generic.ISet<TT>>()
#endif
#if NETSTANDARD || NET || NETCOREAPP || NET35_OR_GREATER
                .Bind<global::System.Collections.Generic.HashSet<TT>>()
                    .To((TT[] arr) =>new global::System.Collections.Generic.HashSet<TT>(arr))
#endif
#if NETSTANDARD || NET || NETCOREAPP || NET45_OR_GREATER
                .Bind<global::System.Collections.Generic.SortedSet<TT>>()
                    .To((TT[] arr) => new global::System.Collections.Generic.SortedSet<TT>(arr))
#endif
#if NET9_0_OR_GREATER
                .Bind<global::System.Collections.ObjectModel.ReadOnlySet<TT>>()
                    .To((global::System.Collections.Generic.ISet<TT> val) => new global::System.Collections.ObjectModel.ReadOnlySet<TT>(val))
#endif
                .Bind<global::System.Collections.Generic.Queue<TT>>()
                    .To((TT[] arr) => new global::System.Collections.Generic.Queue<TT>(arr))
                .Bind<global::System.Collections.Generic.Stack<TT>>()
                    .To((TT[] arr) => new global::System.Collections.Generic.Stack<TT>(arr))
#if NETCOREAPP || NET
#if NETCOREAPP3_0_OR_GREATER
                .Bind<global::System.Collections.Immutable.ImmutableArray<TT>>()
                    .To((TT[] arr) => global::System.Runtime.CompilerServices.Unsafe.As<TT[], global::System.Collections.Immutable.ImmutableArray<TT>>(ref arr))
                .Bind<global::System.Collections.Immutable.IImmutableList<TT>>()
                .Bind<global::System.Collections.Immutable.ImmutableList<TT>>()
                    .To((TT[] arr) => global::System.Runtime.CompilerServices.Unsafe.As<TT[], global::System.Collections.Immutable.ImmutableList<TT>>(ref arr))
                .Bind<global::System.Collections.Immutable.IImmutableSet<TT>>()
                .Bind<global::System.Collections.Immutable.ImmutableHashSet<TT>>()
                    .To((TT[] arr) => global::System.Runtime.CompilerServices.Unsafe.As<TT[], global::System.Collections.Immutable.ImmutableHashSet<TT>>(ref arr))
                .Bind<global::System.Collections.Immutable.ImmutableSortedSet<TT>>()
                    .To((TT[] arr) => global::System.Runtime.CompilerServices.Unsafe.As<TT[], global::System.Collections.Immutable.ImmutableSortedSet<TT>>(ref arr))
                .Bind<global::System.Collections.Immutable.IImmutableQueue<TT>>()
                .Bind<global::System.Collections.Immutable.ImmutableQueue<TT>>()
                    .To((TT[] arr) => global::System.Runtime.CompilerServices.Unsafe.As<TT[], global::System.Collections.Immutable.ImmutableQueue<TT>>(ref arr))
                .Bind<global::System.Collections.Immutable.IImmutableStack<TT>>()
                .Bind<global::System.Collections.Immutable.ImmutableStack<TT>>()
                    .To((TT[] arr) => global::System.Runtime.CompilerServices.Unsafe.As<TT[], global::System.Collections.Immutable.ImmutableStack<TT>>(ref arr))
#else               
                .Bind<global::System.Collections.Immutable.ImmutableArray<TT>>()
                    .To((TT[] arr) => global::System.Collections.Immutable.ImmutableArray.Create<TT>(arr))
                .Bind<global::System.Collections.Immutable.IImmutableList<TT>>()
                .Bind<global::System.Collections.Immutable.ImmutableList<TT>>()
                    .To((TT[] arr) => global::System.Collections.Immutable.ImmutableList.Create<TT>(arr))
                .Bind<global::System.Collections.Immutable.IImmutableSet<TT>>()
                .Bind<global::System.Collections.Immutable.ImmutableHashSet<TT>>()
                    .To((TT[] arr) => global::System.Collections.Immutable.ImmutableHashSet.Create<TT>(arr))
                .Bind<global::System.Collections.Immutable.ImmutableSortedSet<TT>>()
                    .To((TT[] arr) => global::System.Collections.Immutable.ImmutableSortedSet.Create<TT>(arr))
                .Bind<global::System.Collections.Immutable.IImmutableQueue<TT>>()
                .Bind<global::System.Collections.Immutable.ImmutableQueue<TT>>()
                    .To((TT[] arr) => global::System.Collections.Immutable.ImmutableQueue.Create<TT>(arr))
                .Bind<global::System.Collections.Immutable.IImmutableStack<TT>>()
                .Bind<global::System.Collections.Immutable.ImmutableStack<TT>>()
                    .To((TT[] arr) => global::System.Collections.Immutable.ImmutableStack.Create<TT>(arr))
#endif
#endif
#if NET6_0_OR_GREATER
                .Bind<global::System.Random>().To(_ =>
                {
                    // Provides a thread-safe Random instance that may be used concurrently from any thread
                    return global::System.Random.Shared;
                })
#endif
#if NETCOREAPP2_0 || NET || NETSTANDARD2_0_OR_GREATER
                .Bind<global::System.Text.Encoding>().To(_ =>
                {
                    // Gets an encoding for the operating system's current ANSI code page
                    return global::System.Text.Encoding.Default;
                })
#endif
                .Bind<global::System.Text.Decoder>().As(Lifetime.PerBlock).To((global::System.Text.Encoding encoding) =>
                {
                    // Gets a decoder that converts an encoded sequence of bytes into a sequence of characters
                    return encoding.GetDecoder();
                })
                .Bind<global::System.Text.Encoder>().As(Lifetime.PerBlock).To((global::System.Text.Encoding encoding) =>
                {
                    // Gets an encoder that converts a sequence of Unicode characters into an encoded sequence of bytes
                    return encoding.GetEncoder();
                })
;
        }
    }
}
#pragma warning restore
#endif

Code and pdf at

https://ignatandrei.github.io/RSCG_Examples/v2/docs/Pure.DI

RSCG – ConstructorGenerator

RSCG – ConstructorGenerator
 
 

name ConstructorGenerator
nuget https://www.nuget.org/packages/ConstructorGenerator/
link https://github.com/Swarley97/ConstructorGenerator
author Swarley97

Generate constructor for classes

 

This is how you can use ConstructorGenerator .

The code that you start with is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
<Project Sdk="Microsoft.NET.Sdk">
 
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
 
    <PropertyGroup>
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
 
    <ItemGroup>
      <PackageReference Include="ConstructorGenerator" Version="1.0.2" />
    </ItemGroup>
</Project>

The code that you will use is

1
2
3
4
5
using QuickConstructorDemo;
 
var p = new Person("Andrei", "Ignat");
 
Console.WriteLine(p.FullName());
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
using ConstructorGenerator.Attributes;
 
namespace QuickConstructorDemo;
 
[GenerateFullConstructor]
internal partial class Person
{
    [ConstructorDependency]
    private readonly string FirstName="";
 
    private readonly string? LastName;
     
    public string FullName() => $"{FirstName} {LastName}";
     
}

 

The code that is generated is

01
02
03
04
05
06
07
08
09
10
11
12
13
namespace QuickConstructorDemo
{
    internal partial class Person
    {
        public Person(string firstName, string lastName)
        {
            FirstName = firstName;
            LastName = lastName;
            OnConstructing();
        }
        partial void OnConstructing();
    }
}

Code and pdf at

https://ignatandrei.github.io/RSCG_Examples/v2/docs/ConstructorGenerator

RSCG – Valuify

RSCG – Valuify
 
 

name Valuify
nuget https://www.nuget.org/packages/Valuify/
link https://github.com/MooVC/valuify
author Paul Martins

Generating Equals from properties

 

This is how you can use Valuify .

The code that you start with is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<Project Sdk="Microsoft.NET.Sdk">
 
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
 
  <PropertyGroup>
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
 
  <ItemGroup>
    <PackageReference Include="Valuify" Version="1.1.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
  </ItemGroup>
 
  
</Project>

The code that you will use is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
// See https://aka.ms/new-console-template for more information
using GeneratorEqualsDemo;
var p1 = new Person()
{
    ID = 1,
    FirstName = "Andrei",
    LastName = "Ignat"
};
var p2= new Person()
{
    ID = 1,
    FirstName = "Andrei",
    LastName = "Ignat"
};
Console.WriteLine(p1==p2);
01
02
03
04
05
06
07
08
09
10
namespace GeneratorEqualsDemo;
 
[Valuify.Valuify]
partial class Person
{
    public int ID { get; set; }
    public string? FirstName { get; set; }
   
    public string? LastName { get; set; }
}

 

The code that is generated is

01
02
03
04
05
06
07
08
09
10
11
namespace Valuify
{
    using System;
    using System.Diagnostics.CodeAnalysis;
 
    [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
    internal sealed class ValuifyAttribute
        : Attribute
    {
    }
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace GeneratorEqualsDemo
{
    using System;
    using System.Collections.Generic;
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable disable
    #endif
 
    partial class Person
    {
        public static bool operator ==(Person left, Person right)
        {
            if (ReferenceEquals(left, right))
            {
                return true;
            }
 
            if (ReferenceEquals(left, null) || ReferenceEquals(right, null))
            {
                return false;
            }
 
            return global::System.Collections.Generic.EqualityComparer<int>.Default.Equals(left.ID, right.ID)
                && global::System.Collections.Generic.EqualityComparer<string>.Default.Equals(left.FirstName, right.FirstName)
                && global::System.Collections.Generic.EqualityComparer<string>.Default.Equals(left.LastName, right.LastName);
        }
    }
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable restore
    #endif
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
namespace GeneratorEqualsDemo
{
    using System;
    using System.Collections.Generic;
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable disable
    #endif
 
    partial class Person
    {
        public sealed override bool Equals(object other)
        {
            return Equals(other as Person);
        }
    }
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable restore
    #endif
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
namespace GeneratorEqualsDemo
{
    using System;
    using System.Collections.Generic;
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable disable
    #endif
 
    partial class Person
    {
        public sealed override int GetHashCode()
        {
            return global::Valuify.Internal.HashCode.Combine(ID, FirstName, LastName);
        }
    }
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable restore
    #endif
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
namespace GeneratorEqualsDemo
{
    using System;
    using System.Collections.Generic;
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable disable
    #endif
 
    partial class Person
    {
        public bool Equals(Person other)
        {
            return this == other;
        }
    }
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable restore
    #endif
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
namespace GeneratorEqualsDemo
{
    using System;
    using System.Collections.Generic;
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable disable
    #endif
 
    partial class Person
        : IEquatable<Person>
    {
    }
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable restore
    #endif
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
namespace GeneratorEqualsDemo
{
    using System;
    using System.Collections.Generic;
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable disable
    #endif
 
    partial class Person
    {
        public static bool operator !=(Person left, Person right)
        {
            return !(left == right);
        }
    }
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable restore
    #endif
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
namespace GeneratorEqualsDemo
{
    using System;
    using System.Collections.Generic;
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable disable
    #endif
 
    partial class Person
    {
        public sealed override string ToString()
        {
            return string.Format("Person { ID = {0}, FirstName = {1}, LastName = {2} }", ID, FirstName, LastName);
        }
    }
 
    #if NET5_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
    #nullable restore
    #endif
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
namespace Valuify.Internal
{
    using System;
    using System.Collections;
 
    internal static class HashCode
    {
        private const int HashSeed = 0x1505;
        private const int HashPrime = -1521134295;
 
        public static int Combine(params object[] values)
        {
            int hash = HashSeed;
 
            foreach (object value in values)
            {
                if (value is IEnumerable && !(value is string))
                {
                    IEnumerable enumerable = (IEnumerable)value;
 
                    foreach (object element in enumerable)
                    {
                        hash = PerformCombine(hash, element);
                    }
                }
                else
                {
                    hash = PerformCombine(hash, value);
                }
            }
 
            return hash;
        }
 
        private static int PerformCombine(int hash, object value)
        {
            int other = GetHashCode(value);
 
            unchecked
            {
                return (other * HashPrime) + hash;
            }
        }
 
        private static int GetHashCode(object value)
        {
            int code = 0;
 
            if (value != null)
            {
                code = value.GetHashCode();
            }
 
            return code;
        }
    }
}
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
namespace Valuify.Internal
{
    using System;
    using System.Collections;
 
    internal sealed class SequenceEqualityComparer
    {
        public static readonly SequenceEqualityComparer Default = new SequenceEqualityComparer();
 
        public bool Equals(IEnumerable left, IEnumerable right)
        {
            if (ReferenceEquals(left, right))
            {
                return true;
            }
 
            if (ReferenceEquals(left, null) || ReferenceEquals(null, right))
            {
                return false;
            }
 
            return Equals(left.GetEnumerator(), right.GetEnumerator());
        }
 
        public int GetHashCode(IEnumerable enumerable)
        {
            return HashCode.Combine(enumerable);
        }
 
        private static bool Equals(IEnumerator left, IEnumerator right)
        {
            while (left.MoveNext())
            {
                if (!right.MoveNext())
                {
                    return false;
                }
 
                if (!Equals(left.Current, right.Current))
                {
                    return false;
                }
            }
 
            return !right.MoveNext();
        }
    }
}

Code and pdf at

https://ignatandrei.github.io/RSCG_Examples/v2/docs/Valuify

RSCG – Equatable.Generator

RSCG – Equatable.Generator
 
 

name Equatable.Generator
nuget https://www.nuget.org/packages/Equatable.Generator/
link https://github.com/loresoft/Equatable.Generator
author Eden Prairie

Generating Equals from properties

 

This is how you can use Equatable.Generator .

The code that you start with is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
<Project Sdk="Microsoft.NET.Sdk">
 
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
 
  <PropertyGroup>
        <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
        <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
    </PropertyGroup>
 
  <ItemGroup>
    <PackageReference Include="Equatable.Generator" Version="2.0.0" />
  </ItemGroup>
</Project>

The code that you will use is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
// See https://aka.ms/new-console-template for more information
using GeneratorEqualsDemo;
var p1 = new Person()
{
    ID = 1,
    FirstName = "Andrei",
    LastName = "Ignat"
};
var p2= new Person()
{
    ID = 2,
    FirstName = "aNdrei",
    LastName = "Ignat"
};
Console.WriteLine(p1==p2);
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
using Equatable.Attributes;
 
namespace GeneratorEqualsDemo;
 
[Equatable]
partial class Person
{
    [IgnoreEquality]
    public int ID { get; set; }
    [StringEquality(StringComparison.OrdinalIgnoreCase)]
    public string? FirstName { get; set; }
    [StringEquality(StringComparison.OrdinalIgnoreCase)]
 
    public string? LastName { get; set; }
}

 

The code that is generated is

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// <auto-generated />
#nullable enable
 
namespace GeneratorEqualsDemo
{
    partial class Person : global::System.IEquatable<global::GeneratorEqualsDemo.Person?>
    {
        /// <inheritdoc />
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Equatable.SourceGenerator", "2.0.0+10ad4b045a688eb10980afcd11ddb8e64505eda6")]
        public bool Equals(global::GeneratorEqualsDemo.Person? other)
        {
            return !(other is null)
                && global::System.StringComparer.OrdinalIgnoreCase.Equals(FirstName, other.FirstName)
                && global::System.StringComparer.OrdinalIgnoreCase.Equals(LastName, other.LastName);
 
        }
 
        /// <inheritdoc />
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Equatable.SourceGenerator", "2.0.0+10ad4b045a688eb10980afcd11ddb8e64505eda6")]
        public override bool Equals(object? obj)
        {
            return Equals(obj as global::GeneratorEqualsDemo.Person);
        }
 
        /// <inheritdoc />
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Equatable.SourceGenerator", "2.0.0+10ad4b045a688eb10980afcd11ddb8e64505eda6")]
        public static bool operator ==(global::GeneratorEqualsDemo.Person? left, global::GeneratorEqualsDemo.Person? right)
        {
            return global::System.Collections.Generic.EqualityComparer<global::GeneratorEqualsDemo.Person?>.Default.Equals(left, right);
        }
 
        /// <inheritdoc />
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Equatable.SourceGenerator", "2.0.0+10ad4b045a688eb10980afcd11ddb8e64505eda6")]
        public static bool operator !=(global::GeneratorEqualsDemo.Person? left, global::GeneratorEqualsDemo.Person? right)
        {
            return !(left == right);
        }
 
        /// <inheritdoc />
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Equatable.SourceGenerator", "2.0.0+10ad4b045a688eb10980afcd11ddb8e64505eda6")]
        public override int GetHashCode(){
            int hashCode = 1938039292;
            hashCode = (hashCode * -1521134295) + global::System.StringComparer.OrdinalIgnoreCase.GetHashCode(FirstName!);
            hashCode = (hashCode * -1521134295) + global::System.StringComparer.OrdinalIgnoreCase.GetHashCode(LastName!);
            return hashCode;
 
        }
 
    }
}

Code and pdf at

https://ignatandrei.github.io/RSCG_Examples/v2/docs/Equatable.Generator

[Interface2NullObject]Examples–part 3

Examples for rscg_Interface_to_null_object: Simplifying the Null Object Pattern

Now I can show some examples for rscg_Interface_to_null_object. This project aims to simplify the implementation of the Null Object Pattern in C# by automatically generating null object classes from interfaces.

I will start with those 2 interfaces:

1
2
3
4
5
6
7
8
using InterfaceToNullObject;
 
namespace IntegrationConsole;
[ToNullObject]
public interface IDepartment
{
    public string Name { get; set; }
}

and

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
using InterfaceToNullObject;
 
namespace IntegrationConsole;
[ToNullObject]
public interface IEmployee
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public IDepartment Department { get; set; }
    public string GetFullName();
 
    public string GetFullNameAndDepartment(string separator);
    public bool MoveEmployeeToDepartment(IDepartment department);
 
}

The generated code is the following

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// <auto-generated>
    //     This code was generated by a tool :rscg_Interface_to_null_object
    //     Runtime Version: José Saramago is feeling diplomatic in Bissau
    //     DateOfTool : 2025-01-20 16:28:25
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
//------------------------------------------------------------------------------
/// <summary>
    /// This static partial class contains extension methods for sorting collections of IDepartment objects.
    /// </summary>
 
 #nullable enable
 #pragma warning disable CS8603
 #pragma warning disable CS8625
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCode("GeneratorName","2025.10120.11628.125")]
public partial class Department_null : global::IntegrationConsole.IDepartment
{
 
        public virtual string Name { get; set; } = default(string);
     
}
 
#nullable restore
#pragma warning restore CS8603
#pragma warning restore CS8625

And the employee

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// <auto-generated>
    //     This code was generated by a tool :rscg_Interface_to_null_object
    //     Runtime Version: José Saramago is feeling diplomatic in Bissau
    //     DateOfTool : 2025-01-20 16:28:25
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
//------------------------------------------------------------------------------
/// <summary>
    /// This static partial class contains extension methods for sorting collections of IEmployee objects.
    /// </summary>
 
 #nullable enable
 #pragma warning disable CS8603
 #pragma warning disable CS8625
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCode("GeneratorName","2025.10120.11628.125")]
public partial class Employee_null : global::IntegrationConsole.IEmployee
{
 
        public virtual string FirstName { get; set; } = default(string);
     
        public virtual string LastName { get; set; } = default(string);
     
        public virtual IntegrationConsole.IDepartment Department { get; set; } = default(IntegrationConsole.IDepartment);
     
        public virtual string GetFullName() { return default(string); }
     
        public virtual string GetFullNameAndDepartment(string separator) { return default(string); }
     
        public virtual bool MoveEmployeeToDepartment(global::IntegrationConsole.IDepartment department) { return default(bool); }
     
}
 
#nullable restore
#pragma warning restore CS8603
#pragma warning restore CS8625

So please checkout rscg_Interface_to_null_object.

Andrei Ignat weekly software news(mostly .NET)

* indicates required

Please select all the ways you would like to hear from me:

You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.