Skip to content

Instantly share code, notes, and snippets.

@profesor79
Last active February 21, 2023 09:55
Show Gist options
  • Save profesor79/f1f8d5e8ee230f339f94810d24b4611a to your computer and use it in GitHub Desktop.
Save profesor79/f1f8d5e8ee230f339f94810d24b4611a to your computer and use it in GitHub Desktop.
Separate logic from implementation variant 1
public string ProcessItFor(int id) {
var a = GetFromDatabase(id)
if ((a.Length > 15 && a.Contains("11")) | (a.Length < 20 && a.Contains("2")))
{
// some code here
}
return string.Empty;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment