Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
❔ how can i tell analyzer that function will always throw? - C#
C
C#
•
3y ago
•
5 replies
CrosRoad95
❔ how can i tell analyzer that function will always throw?
i want to do something like
:
MyException.Throw(); // void Throw() => throw new Exception();
MyException.Throw(); // void Throw() => throw new Exception();
how can i tell analyzer
, that code after that method won
't be reachable
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ I have an API function and I want to know what exception it can throw. How can I do that?
C
C# / help
3y ago
✅ When calling a generic function, how can I tell it that I'm going to be passing null?
C
C# / help
4y ago
How can i make that
C
C# / help
2y ago
❔ Analyzer trouble
C
C# / help
3y ago