Skip to content

Instantly share code, notes, and snippets.

@HamidMosalla
Created February 28, 2018 07:40
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