Skip to content

Instantly share code, notes, and snippets.

@stuartstein777
Last active March 15, 2021 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartstein777/9b7de67950d769ae5abe0d699bad1f4c to your computer and use it in GitHub Desktop.
Save stuartstein777/9b7de67950d769ae5abe0d699bad1f4c to your computer and use it in GitHub Desktop.
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