Category: roslyn
-
RSCG – NetEscapades.EnumGenerators
RSCG – NetEscapades.EnumGenerators name NetEscapades.EnumGenerators nuget https://www.nuget.org/packages/NetEscapades.EnumGenerators/ link https://andrewlock.net/netescapades-enumgenerators-a-source-generator-for-enum-performance/ author Andrew Lock Running fast tostring and other features for enum This is how you can use NetEscapades.EnumGenerators . The code that you start with is The code that you will use is The code that is generated is Code and pdf…
-
RSCG – ApparatusAOT
RSCG – ApparatusAOT name ApparatusAOT nuget https://www.nuget.org/packages/Apparatus.AOT.Reflection/ link https://github.com/byme8/Apparatus.AOT.Reflection author Stanislav Silin This will generate code for investigating at runtime the properties of an object This is how you can use ApparatusAOT . The code that you start with is The code that you will use is The code that is…
-
RSCG – PartiallyApplied
RSCG – PartiallyApplied name PartiallyApplied nuget https://www.nuget.org/packages/PartiallyApplied/ link https://github.com/JasonBock/PartiallyApplied/blob/main/docs/Quickstart.md author Jason Bock If you need to curry functions,you can use this package This is how you can use PartiallyApplied . The code that you start with is The code that you will use is The code that is generated is Code…
-
RSCG – RazorBlade
RSCG – RazorBlade name RazorBlade nuget https://www.nuget.org/packages/RazorBlade/ link https://github.com/ltrzesniewski/RazorBlade author Lucas Trzesniewski Fast templating with Razor syntax Do not forget to put into AdditionalFiles section of csproj file This is how you can use RazorBlade . The code that you start with is The code that you will use is The…
-
RSCG – Vogen
RSCG – Vogen name Vogen nuget https://www.nuget.org/packages/Vogen/ link https://dunnhq.com/posts/2021/primitive-obsession/ author Steve Dunn Transform values( e.g. int) into classes If you know what are ValueObject,that is one solution This is how you can use Vogen . The code that you start with is The code that you will use is The code…
-
RSCG – dunet
RSCG – dunet name dunet nuget https://www.nuget.org/packages/dunet/ link https://github.com/domn1995/dunet author Domn Werner Add union types to C# – similar with F#/TS discriminated unions Check his examples- awesome This is how you can use dunet . The code that you start with is The code that you will use is The code…
-
RSCG – AutoCtor
RSCG – AutoCtor name AutoCtor nuget https://www.nuget.org/packages/AutoCtor/ link author Cameron MacFarland Generate constructor from non-initialized fields This is how you can use AutoCtor . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/AutoCtor
-
RSCG – QuickConstructor
RSCG – QuickConstructor name QuickConstructor nuget https://www.nuget.org/packages/QuickConstructor link https://github.com/flavien/QuickConstructor author Flavien Charlon Fast add constructors that are read only FIELDS Has multiple other features This is how you can use QuickConstructor . The code that you start with is The code that you will use is The code that is generated…
-
RSCG – System.Runtime.InteropServices
RSCG – System.Runtime.InteropServices name System.Runtime.InteropServices nuget https://www.nuget.org/packages/System.Runtime.InteropServices/ link https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation author Microsoft Generate PInvoke calls This is how you can use System.Runtime.InteropServices . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/System.Runtime.InteropServices
-
RSCG – AutoDeconstruct
name AutoDeconstruct nuget https://www.nuget.org/packages/AutoDeconstruct link https://github.com/JasonBock/AutoDeconstruct/blob/main/docs/Overview.md author Jason Bock Automatically add deconstruct for all types in an assembly This is how you can use AutoDeconstruct . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/AutoDeconstruct