-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix source generator for class with parameterless private constructor.
- Loading branch information
Showing
4 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...est/IOCTests.VerifyIocRegistrationForParameterlessPrivateConstructor#Logger.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//HintName: Logger.g.cs | ||
// <auto-generated/> | ||
#pragma warning disable 612,618 | ||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
[CompilerGenerated] | ||
static file class LoggerRegistration | ||
{ | ||
[UnsafeAccessor(UnsafeAccessorKind.Constructor)] | ||
extern static global::Logger Constr(); | ||
[ModuleInitializer] | ||
internal static unsafe void Register4BTDB() | ||
{ | ||
global::BTDB.IOC.IContainer.RegisterFactory(typeof(global::Logger), (container, ctx) => | ||
{ | ||
return (container2, ctx2) => | ||
{ | ||
var res = Constr(); | ||
return res; | ||
}; | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters