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