InterfaceGenerator
InterfaceGenerator copied to clipboard
A simple source generator that creates interfaces by implementations.
I've noticed that if using InterfaceGenerator, the following libraries appear in the bin folder (17.5 MB size total) - Microsoft.CodeAnalysis.dll - Microsoft.CodeAnalysis.CSharp.dll - Microsoft.CodeAnalysis.CSharp.Workspaces.dll - Microsoft.CodeAnalysis.VisualBasic.dll - Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll - Microsoft.CodeAnalysis.Workspaces.dll...
I get conflicts when I also install: https://github.com/CollinAlpert/Lombok.NET
Add nullable context to generated interface to fix warning ``` The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires...
A property defined as public int[,] Prop; Generates in the interface file causing a compilation error. int[\*,\*];
We have our own custom set of log events that we keep track of in a database. The severity is stored with a custom LogLevel enum: ``` public enum LogLevel...
Most of the generated files have this comment on top: `// ` Then, code analysis tools know to don't show warnings about this code. This library doesn't add this comment...
When a method had the 'unmanaged' constraint specified, then the interface generator would output both 'struct' and 'unmanaged' constraints. However, the C# specification explicitly forbids to combine these constraints. The...
probably better to use NET6 instead of netstandard? can netstandard cause any issues moving forward
Currently the VisibilityModifier option on the GenerateAutoInterfaceAttribute is of type string. I think it would be better to be able to define this setting using an enum. Theoretically there could...
Curent Behaviour: For the class > [InterfaceGenerator.GenerateAutoInterface(VisibilityModifier = "public")] > public class AClass : IAClass > { > > [return: NotNullIfNotNull(nameof(content))] > public byte[]? TheMethod(byte[]? content) > { > if...