Codegen in modidier support
This commit is contained in:
1 parent
b4280cd06d
commit
84f9840024
17 files changed
+316
-75
No files matched your search
@@ -7,7 +7,7 @@
|
||||
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<LangVersion>9</LangVersion>
|
||||
<LangVersion>12</LangVersion>
|
||||
|
||||
<PublishAot>true</PublishAot>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Example.Backend
|
||||
{
|
||||
private readonly List<IPrinter> _printers = new();
|
||||
|
||||
public IPrinter Create(string printerName)
|
||||
public IPrinter Create(in string printerName)
|
||||
{
|
||||
Console.WriteLine("Creating printer");
|
||||
return new Printer { Name = printerName };
|
||||
|
||||
Reference in new issue
Block a user