Created
July 12, 2019 07:23
-
-
Save CoditCompany/77d122fd611bdd5b87687e09634e4976 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int unknown = 5; | |
var untrusted = Untrust<int>(unknown); | |
if (untrusted.TryGetValue(x => x > 3, out int trusted)) | |
{ | |
// Set 'trusted' now into dedicated 'Int' type. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment