public T this[profession id] { set { if (id == profession.NONE) { _default = value; } else { this[id.ToString()] = value; } } get { if (id == profession.NONE) { return(_default); } else { return(this[id.ToString()]); } } }
public bool TryGetValue(profession id, out T result) { return(TryGetValue(id.ToString(), out result)); }