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