-
-
Save HamidMosalla/229cb1836983197447d82f8d9960e634 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
void WriteLog(FileStream logFile) | |
{ | |
if (!logFile.CanWrite) | |
{ | |
throw new System.InvalidOperationException("Logfile cannot be read-only"); | |
} | |
// Else write data to the log and return. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment