Category: projects
-
openAPISwaggerUI–part 3–add UI for all
This is how I made https://nuget.org/packages/OpenAPISwaggerUI in order to see the UI for an ASP.NET 9 project. And hey,if you have any feedback,don’t be shy! Drop by https://github.com/ignatandrei/openAPISwaggerUI/ and let me know. Now I want the users of my ASP.NET 9 project to have a buffet of Swagger UIs (Swashbuckle,Redoc,Scalar,NSwag,VisualAutomation) and let them pick their…
-
openAPISwaggerUI–part 2 – add ui for all
This is how I made https://nuget.org/packages/OpenAPISwaggerUI in order to see the UI for an ASP.NET 9 project. And hey,if you have any feedback,don’t be shy! Drop by https://github.com/ignatandrei/openAPISwaggerUI/ and let me know. Step one in this epic quest: add all the mystical references (a.k.a. NuGet packages) to the project file. Next,I had to figure out…
-
openAPISwaggerUI–part 1- idea
In .NET 9,Microsoft decided to play a little game of “Hide and Seek” with OpenAPI / Swagger JSON generation,leaving the UI part for us to figure out. So,how do we choose the best UI for our project without turning it into a guessing game? Well,I thought,why not create a project that lets you try all…
-
[Interface2NullObject]Debugger and Converter–part 5
It will be interesting to see the Null Object in the debugger with properties generated from interface -see https://www.nuget.org/packages/rscg_Interface_to_null_object This is not very difficult to generate once you have the interface with properties The code for generating and the code generated is More interesting is to have a converter in order…
-
[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 –…
-
[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] 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…
-
Activities 2024 -projects
Compare EFCore providers : http://msprogrammer.serviciipeweb.ro/category/ef/ Inventory of > 70 Roslyn Code Generator at https://github.com/ignatandrei/rscg_examples Created a free book about how are the Design Patterns used inside the .NET Patterns | Design Patterns used in .NET (C#) Created a .NET Tool,https://github.com/ignatandrei/PackageAnalyzer/,that analyze the Visual Studio Solution Created a ASP.NET Core Nuget package that lists various settings…
-
Package analyzer and Feature Matrix
I have started a .NET Tool,https://github.com/ignatandrei/PackageAnalyzer,that can analyze your solution and generate various statistics. The program can show you dependency matrix of projects The X on the diagonal shows that the project is not dependent on himself. The 1 shows that the project is dependent DIRECTLY on the other project ( read from left to…
-
Watch2–part7–full test
Watch2 NuGet Package The Watch2 NuGet package extends the functionality of dotnet watch by adding features such as console clearing and delay handling. It outputs the same information as dotnet watch. 1. Wrapper Interfaces To facilitate testing,it is necessary to wrap various process creation classes from .NET (e.g.,Process => ProcessWrapper,ProcessStartInfo => ProcessStartInfoWrapper). This allows for…