You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -8310,6 +8318,9 @@ internal interface IResolver<TComposite, out T>
8310
8318
TResolveByTag(TCompositecomposite,objecttag);
8311
8319
}
8312
8320
8321
+
/// <summary>
8322
+
/// Lightweight composition root. Does not create a separate composition object for instance creation, uses a common one for all lightweight roots and a delegate to create the type instance.
Copy file name to clipboardExpand all lines: src/Pure.DI.Core/Components/Api.g.tt
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,10 @@ namespace System
22
22
internal delegate TResult Func<out TResult>();
23
23
#endif
24
24
#if NET20 || NET35
25
-
<#for(var i = 0; i < baseCount; i ++)
25
+
<#for(var i = 1; i <= 16; i ++)
26
26
{
27
-
var typeArgs = string.Join(", ", GetSuffixes(0, i).Select(suffix => $"in T{suffix}"));
28
-
var args = string.Join(", ", GetSuffixes(0, i).Select(suffix => $"T{suffix} arg{suffix}"));
27
+
var typeArgs = string.Join(", ", GetSuffixes(1, i).Select(suffix => $"in T{suffix}"));
28
+
var args = string.Join(", ", GetSuffixes(1, i).Select(suffix => $"T{suffix} arg{suffix}"));
29
29
#>
30
30
internal delegate TResult Func<<#=typeArgs#>, out TResult>(<#=args#>);
31
31
<#
@@ -3580,6 +3580,9 @@ var typeArgs = string.Join(", ", GetSuffixes(1, i + 1).Select(suffix => $"T{suff
3580
3580
T ResolveByTag(TComposite composite, object tag);
3581
3581
}
3582
3582
3583
+
/// <summary>
3584
+
/// Lightweight composition root. Does not create a separate composition object for instance creation, uses a common one for all lightweight roots and a delegate to create the type instance.
0 commit comments