Search
Setup for Free
C
C#
•
4y ago
phaseshift
How to make string exception???
Each time you read a line
, save it into a HashSet
<string
>
. But before you save it into the hash set
, check if the line is already in the hash set
. If it is
, then throw your exception
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,134
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
How to make string to int
C
C# / help
3y ago
MVVM How to make observablecollection<string> always contain a string
C
C# / help
2y ago
✅ Unhandled exception. Cannot print exception string because Exception.ToString() failed.just
C
C# / help
2y ago
How to skip exception
C
C# / help
2y ago