The T4 template searches the template's project to look for non-static, classes, with no constructor. A constructor will be added per class that will take all private instance fields of that type as input.
Dependency Injection in ASP.NET WebForms using Microsoft.Extensions.DependencyInjection and WebObjectActivator. This package requires .NET Framework 4.7.2 or later.
DiConstructorGeneratorExtension for Visual Studio companion library. Containins marker attributes to include\exclude class members to be used with extesnion. The extension itself is available at https://marketplace.visualstudio.com/items?itemName=Koshelew.DiConstructorGeneratorExtension
The class4js module is for class-driven development in JavaScript. It allows to emulate classes in JavaScript. Module is based on ECMAScript 5 standart and implements open/close principle: "A module should be open for extension but closed for modifications".