Last active
March 15, 2021 13:42
-
-
Save stuartstein777/9b7de67950d769ae5abe0d699bad1f4c 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
Saw this call | |
``` | |
dbs.Add(new Database("OnCallQueue", 666, 80, "online", "full")); | |
``` | |
And thought that Database constructor signature would be something like | |
``` | |
(string, int, int, string, string) | |
`` | |
But no! | |
``` | |
public Database(string name, int status, byte cmptlevel, object status_desc, object recoverytype_desc) | |
``` | |
Then in the constructor body: | |
``` | |
recoverytype_desc.ToString().ToLower().Contains("full") | |
``` | |
Further, `status` and `cmptlevel` were never used... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment