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
code.AppendLine($"/// This example shows how to get an instance of type {formatter.FormatRef(root.Node.Type)} using the composition root {formatter.FormatRef(composition.Source.Source,root)}:");
135
+
code.AppendLine($"/// This example shows how to get an instance of type {formatter.FormatRef(root.Node.Type)} using the composition root {formatter.FormatRef(composition.Setup,root)}:");
code.AppendLine($"/// This parameterized constructor creates a new instance of <see cref=\"{composition.Source.Source.Name.ClassName}\"/> with arguments.");
16
+
code.AppendLine($"/// This parameterized constructor creates a new instance of <see cref=\"{composition.Name.ClassName}\"/> with arguments.");
Copy file name to clipboardExpand all lines: src/Pure.DI.Core/Core/Code/Parts/DefaultConstructorBuilder.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,17 @@ public CompositionCode Build(CompositionCode composition)
18
18
19
19
varcode=composition.Code;
20
20
varmembersCounter=composition.MembersCount;
21
-
varhints=composition.Source.Source.Hints;
21
+
varhints=composition.Hints;
22
22
varisCommentsEnabled=hints.IsCommentsEnabled;
23
23
if(isCommentsEnabled)
24
24
{
25
25
code.AppendLine("/// <summary>");
26
-
code.AppendLine($"/// This constructor creates a new instance of <see cref=\"{composition.Source.Source.Name.ClassName}\"/>. Typically used to create a root scope in scenarios where <see cref=\"Lifetime.Scoped\"/> lifetime might be used.");
26
+
code.AppendLine($"/// This constructor creates a new instance of <see cref=\"{composition.Name.ClassName}\"/>. Typically used to create a root scope in scenarios where <see cref=\"Lifetime.Scoped\"/> lifetime might be used.");
0 commit comments