Skip to content

Instantly share code, notes, and snippets.

@kenji-andoh
kenji-andoh / immutable-sample4.cs
Last active March 28, 2017 01:22
immutable 解説のためのコード断片
// クラスの内部状態が Mutable だったら
// あるクラスの"設定" を示す
class SomeSettings
{
//あるクラスの何らかの動作モード
public enum BehaviourMode { A,B };
//設定のモードの値
public BehaviourMode Mode{ get;set;}