Рихтер и его Applied .Net Framework Programming
Date: 12/05/05
(Code WTF) Keywords: no keywords
[Flags]
public enum Accounts {
Savings = 0x0001,
Checking = 0x0002,
Brokerage = 0x0004
}
// Definition of a class with Accounts accounts member skiped.
// Check if two class objects match:
if ((other.accounts & accounts) != accounts) return false;
Source: http://community.livejournal.com/code_wtf/20130.html