Category: RSCG

  • RSCG – Comparison

    RSCG – Comparison     name Comparison nuget https://www.nuget.org/packages/ReflectionIT.ComparisonOperatorsGenerator/ link https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator author Fons Sonnemans If you want to generate comparison operators for your classes, startin with IComparable   This is how you can use Comparison . The code that you start with is The code that you will use is   The code that is…

  • RSCG – NativeObjects

    RSCG – NativeObjects     name NativeObjects nuget https://www.nuget.org/packages/NativeObjects/ link https://github.com/kevingosse/NativeObjects author Kevin Gosse Object to IntPtr and back   This is how you can use NativeObjects . 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/NativeObjects

  • RSCG – immediate.apis

    RSCG – immediate.apis     name immediate.apis nuget https://www.nuget.org/packages/immediate.apis/ link https://github.com/immediateplatform/immediate.apis author Stuart Turner Defining APIs in classes instead of in minimal API or controllers   This is how you can use immediate.apis . The code that you start with is The code that you will use is   The code that is generated is…

  • RSCG – rscg_demeter

    RSCG – rscg_demeter     name rscg_demeter nuget https://www.nuget.org/packages/rscg_demeter/ link https://github.com/ignatandrei/rscg_demeter/ author Andrei Ignat Generating diagnostics about Law of Demeter violations   This is how you can use rscg_demeter . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at…

  • RSCG – PMart.Enumeration

    RSCG – PMart.Enumeration     name PMart.Enumeration nuget https://www.nuget.org/packages/PMart.Enumeration.Generator/ https://www.nuget.org/packages/PMart.Enumeration/ link https://github.com/p-martinho/Enumeration author Martinho Constants as enumeration. With EFCore,Swagger and other implementations.   This is how you can use PMart.Enumeration . The code that you start with is The code that you will use is   The code that is generated is Code and pdf…

  • RSCG – MemberAccessor

    RSCG – MemberAccessor     name MemberAccessor nuget https://www.nuget.org/packages/BunnyTail.MemberAccessor/ link https://github.com/usausa/member-accessor-generator author Yamaokuno Generate getter and setter for class members.   This is how you can use MemberAccessor . 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/MemberAccessor

  • RSCG – StepwiseBuilderGenerator

    RSCG – StepwiseBuilderGenerator     name StepwiseBuilderGenerator nuget https://www.nuget.org/packages/StepwiseBuilderGenerator/ link https://github.com/Georgiy-Petrov/StepwiseBuilderGenerator author Georgiy Petrov Generating Builder- as steps   This is how you can use StepwiseBuilderGenerator . 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/StepwiseBuilderGenerator

  • Demeter and Roslyn–part 3–config and tests

    Beyond the Squiggles: Flexible Reporting and Confidence Through Testing So,we’ve built our Law of Demeter analyzer,RSCG_Demeter,using Roslyn to intelligently spot those overly-chatty code chains,even navigating the complexities of fluent interfaces. We could just have it throw warnings or errors directly in your IDE via Roslyn diagnostics. But let’s be honest,sometimes a flood of new diagnostics…

  • Demeter and Roslyn–part 2- code

    Okay,let’s build on the first part and explain the “how” in a more engaging way,weaving in the code snippets to illustrate the process. From Counting Dots to Understanding Code: Building the Demeter Analyzer In the first part,we established our mission: build a Roslyn analyzer to sniff out Law of Demeter violations – stopping our code…

  • Demeter and Roslyn–part 1–idea

    Stop Your C# Code Talking to Strangers: Introducing a Law of Demeter Roslyn Analyzer The Law of Demeter (LoD),often summarized as “Only talk to your immediate friends,” is a valuable principle for writing loosely coupled,maintainable code. Code that follows LoD tends to be less fragile and easier to refactor. But manually checking for LoD violations?…