https://msicc.net/some-helpful-extensions-when-dealing-with-types-in-net/
Some helpful extensions when dealing with types in .NET