Category: RSCG
-
[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…
-
[Interface2NullObject]Implementation–part2
Introducing rscg_Interface_to_null_object: Simplifying the Null Object Pattern I’m excited to announce the release of my new project,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. Architecture Overview The project is composed of two main components: Attribute Project: This project contains the…
-
[Interface2NullObject] Idea- part 1
Every time I kick off a new project,I dive straight into classes/methods that do stuff – because who doesn’t love instant gratification? But now,I’m turning over a new leaf. From now on,I’m starting with interfaces and then gradually building out the classes that make the magic happen. But here’s the catch – for every interface,I…
-
RSCG – Darp.BinaryObjects
RSCG – Darp.BinaryObjects name Darp.BinaryObjects nuget https://www.nuget.org/packages/Darp.BinaryObjects/ link https://github.com/rosslight/Darp.BinaryObjects author Ross Light GmbH Serialize bits of data This is how you can use Darp.BinaryObjects . 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/Darp.BinaryObjects
-
RSCG – Dolly
RSCG – Dolly name Dolly nuget https://www.nuget.org/packages/Dolly/ link https://github.com/AnderssonPeter/Dolly author Peter Andersson Clone objects with ease. This is how you can use Dolly . 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/Dolly
-
RSCG – Dapper.AOT
RSCG – Dapper.AOT name Dapper.AOT nuget https://www.nuget.org/packages/Dapper.AOT/ link https://aot.dapperlib.dev/ author Marc Gravell Generating AOT code for Dapper -hydrating classes from SQL queries. This is how you can use Dapper.AOT . The code that you start with is The code that you will use is The code that is generated is Code…
-
RSCG – Microsoft.Windows.CsWin32
RSCG – Microsoft.Windows.CsWin32 name Microsoft.Windows.CsWin32 nuget https://www.nuget.org/packages/Microsoft.Windows.CsWin32/ link https://github.com/microsoft/CsWin32 author Microsoft Generating WinAPI code in C# This is how you can use Microsoft.Windows.CsWin32 . 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/Microsoft.Windows.CsWin32
-
RSCG – GoLive.Generator.BlazorInterop
RSCG – GoLive.Generator.BlazorInterop name GoLive.Generator.BlazorInterop nuget https://www.nuget.org/packages/GoLive.Generator.BlazorInterop/ link https://github.com/surgicalcoder/BlazorInteropGenerator author surgicalcoder Generating interop from C# to javascript for Blazor This is how you can use GoLive.Generator.BlazorInterop . 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 – Hsu.Sg.FluentMember
RSCG – Hsu.Sg.FluentMember name Hsu.Sg.FluentMember nuget https://www.nuget.org/packages/Hsu.Sg.FluentMember/ link https://github.com/hsu-net/source-generators author Net Hsu Adding builder pattern to classes This is how you can use Hsu.Sg.FluentMember . 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/Hsu.Sg.FluentMember
-
RSCG – QueryStringGenerator
RSCG – QueryStringGenerator name QueryStringGenerator nuget https://www.nuget.org/packages/QueryStringGenerator/ link https://github.com/tparviainen/query-string-generator author Tomi Parviainen Generate from string properties of a class a query string for a URL. This is how you can use QueryStringGenerator . The code that you start with is The code that you will use is The code that is…