skarllot / enumutilities Goto Github PK
View Code? Open in Web Editor NEWA source generator for C# that uses Roslyn to create extensions and parsers for enumerations
License: MIT License
A source generator for C# that uses Roslyn to create extensions and parsers for enumerations
License: MIT License
Ensure proper de/serialization support of flags enum
Allocation free serialization and research whether should use commas or pipes
No response
Generator 'EnumUtilitiesGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'Index was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter 'chunkLength')' System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter 'chunkLength') at System.Text.StringBuilder.ToString() at Raiqub.Generators.EnumUtilities.EnumUtilitiesGenerator.AddExtensionsSource(EnumToGenerate type, SourceProductionContext context) in C:\Users\skarl\source\repos\github\skarllot\EnumUtilities\src\EnumUtilities\EnumUtilitiesGenerator.Emitter.cs:line 68 at Raiqub.Generators.EnumUtilities.EnumUtilitiesGenerator.Emit(Compilation compilation, SourceProductionContext context, ImmutableArray`1 types) in C:\Users\skarl\source\repos\github\skarllot\EnumUtilities\src\EnumUtilities\EnumUtilitiesGenerator.Emitter.cs:line 42 at Microsoft.CodeAnalysis.UserFunctionExtensions.c__DisplayClass3_0`2. b__0(TInput1 input1, TInput2 input2, CancellationToken token) in Z:\BuildAgent\work\3b7ce003563d6f8f\src\Compilers\Core\Portable\SourceGeneration\UserFunction.cs:line 101
Support generating Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter<>
for enum.
[assembly: EnumValueConverterGenerator(typeof(MyEnum), DefaultValue = 0)]
Support Interlocked methods like CompareExchange
Extension methods
No response
Cannot use attribute when assets are private.
Use GeneratedCodeAttribute
for generated methods.
Example:
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "6.0.7.2304")]
Enable audit for all packages, including transient and warn about low level advisories.
https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages
No response
Methods with out parameters are not supported by lambda expressions
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/codeql.yml
step-security/harden-runner v2.6.1@eb238b55efaa70779f274895e782ed17c84f2895
actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-dotnet v4.0.0@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
actions/cache v3.3.3@e12d46a63a90f2fae62d114769bbf2a179198b5c
github/codeql-action v3.23.0@e5f05b81d5b6ff8cfa111c80c22c5fd02a384118
github/codeql-action v3.23.0@e5f05b81d5b6ff8cfa111c80c22c5fd02a384118
.github/workflows/dependency-review.yml
step-security/harden-runner v2.6.1@eb238b55efaa70779f274895e782ed17c84f2895
actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
actions/dependency-review-action v3.1.5@c74b580d73376b7750d3d2a50bfb8adc2c937507
.github/workflows/dotnet.yml
step-security/harden-runner v2.6.1@eb238b55efaa70779f274895e782ed17c84f2895
actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-dotnet v4.0.0@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
actions/cache v3.3.3@e12d46a63a90f2fae62d114769bbf2a179198b5c
codecov/codecov-action v3.1.4@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
.github/workflows/package.yml
step-security/harden-runner v2.6.1@eb238b55efaa70779f274895e782ed17c84f2895
actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-dotnet v4.0.0@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
actions/cache v3.3.3@e12d46a63a90f2fae62d114769bbf2a179198b5c
.github/workflows/scorecard.yml
step-security/harden-runner v2.6.1@eb238b55efaa70779f274895e782ed17c84f2895
actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
ossf/scorecard-action v2.3.1@0864cf19026789058feabb7e87baa5f140aac736
actions/upload-artifact v4.1.0@1eb3cb2b3e0f29609092a73eb033bb759a334595
github/codeql-action v3.23.0@e5f05b81d5b6ff8cfa111c80c22c5fd02a384118
Directory.Build.props
Nerdbank.GitVersioning 3.6.133
DotNet.ReproducibleBuilds 1.1.1
global.json
dotnet-sdk 8.0.101
src/EnumUtilities/EnumUtilities.csproj
Polyfill 2.0.1
Microsoft.CodeAnalysis.Analyzers 3.3.4
TryParse methods require manual exception throwing
Create Parse
extension method that throws an exception specifying which value is unexpected
No response
Hi @skarllot! ๐
Thank you for installing DevApe! ๐จ๐ฝโ๐ป๐ฆ I wanted to let you know I'm ready for use. Here's what I can do for you:
If you have any questions or need support, feel free to reach out at [email protected].
Let's build amazing things together! ๐
Provide constant strings from attributes values
Something like: MyEnumInfo.EnumMember.Value2
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.