-
[Interface2NullObject]Replace default-part 4
So for https://github.com/ignatandrei/rscg_Interface_to_null_object we put the default return value as the default for the return type. For properties,it is enough easy to modify the data. But for functions ? Let’s say we return an array The default value is null – so it will be throwing an error when do “foreach ” . So –…
-
[ADCES] Mock the Wire & How your .NET software supply chain is open to attack
Details Presentation 1 : Mock the Wire,with WireMock.NET: Simplifying API Testing in .NET Presenter : Cosmin Vladutu,https://www.linkedin.com/in/cosmin-vladutu/ Description : WireMock.NET offers an easy and flexible way to mock external dependencies,making API testing in .NET more reliable and efficient. It bridges the gap between integration and contract testing,allowing developers to validate service interactions without relying on real external services.…
-
What I use for a csproj for a Roslyn Code Generator
My csproj file looks like this And now a detailed explanation Project Sdk <Project Sdk=”Microsoft.NET.Sdk”> This tag specifies the SDK to use for the project. The Microsoft.NET.Sdk is a general-purpose SDK for .NET projects. PropertyGroup <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> <LangVersion>12.0</LangVersion> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <IsRoslynComponent>true</IsRoslynComponent> <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> </PropertyGroup> TargetFramework: Targets .NET Standard 2.0,ensuring compatibility with a wide range of .NET…
-
Friday links 497
Why TCP needs 3 handshakes | PixelsTech 7 questions I get asked frequently as an EM | by Nitin Dhar | Total Engineering Management | Sep,2024 | Medium Everything You Want to Know About the Record Type in .NET… But Were Afraid to Ask – dotNetTips.com Terminal colours are tricky Jonas Hietala: Why I still…
-
RSCG – Pure.DI
RSCG – Pure.DI name Pure.DI nuget https://www.nuget.org/packages/Pure.DI/ link https://github.com/DevTeam/Pure.DI author Nikolay Pianikov Constructing injecting container This is how you can use Pure.DI . 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/Pure.DI
-
RSCG – ConstructorGenerator
RSCG – ConstructorGenerator name ConstructorGenerator nuget https://www.nuget.org/packages/ConstructorGenerator/ link https://github.com/Swarley97/ConstructorGenerator author Swarley97 Generate constructor for classes This is how you can use ConstructorGenerator . 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/ConstructorGenerator
-
RSCG – Valuify
RSCG – Valuify name Valuify nuget https://www.nuget.org/packages/Valuify/ link https://github.com/MooVC/valuify author Paul Martins Generating Equals from properties This is how you can use Valuify . 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/Valuify
-
RSCG – Equatable.Generator
RSCG – Equatable.Generator name Equatable.Generator nuget https://www.nuget.org/packages/Equatable.Generator/ link https://github.com/loresoft/Equatable.Generator author Eden Prairie Generating Equals from properties This is how you can use Equatable.Generator . 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/Equatable.Generator
-
Friday links 496
Myriad Facets – Honest Privacy Policy Career Advice: Simplifiers Go Far,Complexifiers Get Stuck – Kellblog Doing support makes you a better engineer – by Ian Vanagas The 80/20 Guide to JSON.stringify in JavaScript | www.thecodebarbarian.com What even is a JSON Number? .NET Aspire integrations overview – .NET Aspire | Microsoft Learn Taking a look at…
-
[Interface2NullObject]Examples–part 3
Examples for rscg_Interface_to_null_object: Simplifying the Null Object Pattern Now I can show some examples for rscg_Interface_to_null_object. This project aims to simplify the implementation of the Null Object Pattern in C# by automatically generating null object classes from interfaces. I will start with those 2 interfaces: and The generated code is the following And the employee…
I am ok , you are ok