Category: .NET Core
-
RSCG – Minerals.AutoInterfaces
name Minerals.AutoInterfaces nuget https://www.nuget.org/packages/Minerals.AutoInterfaces/ link https://github.com/SzymonHalucha/Minerals.AutoInterfaces author Szymon Hałucha Generating interface from class This is how you can use Minerals.AutoInterfaces . 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/Minerals.AutoInterfaces
-
RSCG – BitsKit
name BitsKit nuget https://www.nuget.org/packages/BitsKit/ link https://github.com/barncastle/BitsKit author barncastle Reading efficiently from a bit structure This is how you can use BitsKit . 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/BitsKit
-
RSCG – FusionReactor
name FusionReactor nuget https://www.nuget.org/packages/FusionReactor.SourceGenerators.EnumExtensions link https://github.com/OhFlowi/FusionReactor.SourceGenerators.EnumExtensions author OhFlowi Enums to string and other extensions This is how you can use FusionReactor . 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/FusionReactor
-
RSCG – UnionGen
name UnionGen nuget https://www.nuget.org/packages/UnionGen/ link https://github.com/markushaslinger/union_source_generator author M. Haslinger Generating unions between types This is how you can use UnionGen . 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/UnionGen
-
RSCG – EnumUtilities
name EnumUtilities nuget https://www.nuget.org/packages/Raiqub.Generators.EnumUtilities/ link https://github.com/skarllot/EnumUtilities author Fabricio Godoy Enum to string- and multiple other extensions for an enum This is how you can use EnumUtilities . 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/EnumUtilities
-
RSCG – CommonCodeGenerator
name CommonCodeGenerator nuget https://www.nuget.org/packages/CommonCodeGenerator/ link https://github.com/usausa/common-code-generator author yamaokunousausa Generating ToString from classes This is how you can use CommonCodeGenerator . 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/CommonCodeGenerator
-
Pattern: FluentInterface
Description Fluent interface allows you do have method chaining Example in .NET : FluentInterface Learn More Source Code for Microsoft implementation of FluentInterface SourceCode Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton Learn More Wikipedia } Homework Implement a class person that you can see the first name and last name as fluent interface
-
Pattern: Chain
Description Chain of responsibility pattern allows an object to send a command without knowing what object will receive and handle it. Chain the receiving objects and pass the request along the chain until an object handles it Example in .NET : Chain Learn More Wikipedia Homework Implement a middleware in ASP.NET Core that intercepts the…
-
Pattern: Decorator
Description Decorator allows behavior to be added to an individual object,either statically or dynamically,without affecting the behavior of other objects from the same class. Example in .NET : Decorator Learn More Wikipedia Homework 1. Add a logging to DBConnection . 2. Use by decorating a coffee with milk,sugar,and chocolate (and maybe other condiments). The coffee…
-
Pattern: Facade
Description Facade is is an object that provides a simplified interface to a larger body of code,such as a class library. Example in .NET : Facade Learn More Wikipedia Homework Implement a Facade that will allow you to display a question in a MessageBox with a single method call in a console application and return…