Ejemplo n.º 1
0
            public object?GetNthMask(int index)
            {
                RaceRelation_FieldIndex enu = (RaceRelation_FieldIndex)index;

                switch (enu)
                {
                case RaceRelation_FieldIndex.Race:
                    return(Race);

                case RaceRelation_FieldIndex.Modifier:
                    return(Modifier);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Ejemplo n.º 2
0
            public void SetNthMask(int index, object obj)
            {
                RaceRelation_FieldIndex enu = (RaceRelation_FieldIndex)index;

                switch (enu)
                {
                case RaceRelation_FieldIndex.Race:
                    this.Race = (Exception?)obj;
                    break;

                case RaceRelation_FieldIndex.Modifier:
                    this.Modifier = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }