Closed
Description
Description
This is a duplicate for a Xamarin Essentials ticket which was favored by @mattleibow in here.
The reasoning stays the same, the JIT compiler recognizes these throw helpers and never inlines them. The calling method may thus have a more favourable structure due to not having the execption creation instructions. This might allow further optimizations which previously were not available.
The Essentials Barmometer class for example mirrors this behaviour.
Public API Changes
None, if the attribute is introduced to hide the throw helpers from stack traces
Intended Use-Case
Minor improvement mirroring best practices for library code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment