Created
March 20, 2012 20:19
-
-
Save colinbowern/2140880 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
public class ObserveringType | |
{ | |
// Use Is prefix here because the purpose of this class it to describe the other class | |
public bool IsEnabled { get; protected set; } | |
public ObservingType(SomeType type) { ... } | |
} | |
public class SomeType | |
{ | |
// Don't use Is prefix here because you are talking about yourself. | |
public bool Enabled { get; protected set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment