This is Real
Real code in a production system which will remain unnamed, as will the source.
Drink it in.
public string Role;
public void Save()
// lots of code here
string roles = Roles.GetAllRoles();
foreach (string role in roles)
if (Role.ToUpper() == role.ToUpper())
Role = role;
// lots more code
It actually took me a moment to see the real beauty in this.