Is it possible to do something like:
using MyCustomDto = (flag == "library1") ? MyLibrary1.Dtos.MyDto1 : MyLibrary2.Dtos.MyDto2;
I can't figure out the right syntax for this. So depending on a flag in an appsettings.config, I want to load a Dto from a specific library, they have different namespaces as you can see, this would be part of the using
directives block where commonly you see statements like:
using System.Collections.Generic;