easy but a start..
https://tyrrrz.me/blog/return-type-inference
https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/types/generics
adapt a pattern and build a reald world ex into it
https://github.com/flowxcode/dotnet-design-patterns-samples#factory-method
https://github.com/flowxcode/dotnet-design-patterns-samples/tree/master/Generating/FactoryMethod
the factory pattern:
TestFixtureContextBase.cs
DeviceMapper -> gets a new DeviceFactory creates Devices , Devices inherit from Device class.