public object?GetNthMask(int index) { SkillBoost_FieldIndex enu = (SkillBoost_FieldIndex)index; switch (enu) { case SkillBoost_FieldIndex.Skill: return(Skill); case SkillBoost_FieldIndex.Boost: return(Boost); default: throw new ArgumentException($"Index is out of range: {index}"); } }
public void SetNthMask(int index, object obj) { SkillBoost_FieldIndex enu = (SkillBoost_FieldIndex)index; switch (enu) { case SkillBoost_FieldIndex.Skill: this.Skill = (Exception?)obj; break; case SkillBoost_FieldIndex.Boost: this.Boost = (Exception?)obj; break; default: throw new ArgumentException($"Index is out of range: {index}"); } }
public void SetNthException(int index, Exception ex) { SkillBoost_FieldIndex enu = (SkillBoost_FieldIndex)index; switch (enu) { case SkillBoost_FieldIndex.Skill: this.Skill = ex; break; case SkillBoost_FieldIndex.Boost: this.Boost = ex; break; default: throw new ArgumentException($"Index is out of range: {index}"); } }