Throw Efficient exception throwing utilities. To use this in your project, add the following to your .csproj file: <PropertyGroup> <InjectSharedThrow>true</InjectSharedThrow> </PropertyGroup>