Пример #1
0
            public object?GetNthMask(int index)
            {
                LocationCellEnablePoint_FieldIndex enu = (LocationCellEnablePoint_FieldIndex)index;

                switch (enu)
                {
                case LocationCellEnablePoint_FieldIndex.Actor:
                    return(Actor);

                case LocationCellEnablePoint_FieldIndex.Ref:
                    return(Ref);

                case LocationCellEnablePoint_FieldIndex.Grid:
                    return(Grid);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Пример #2
0
            public void SetNthMask(int index, object obj)
            {
                LocationCellEnablePoint_FieldIndex enu = (LocationCellEnablePoint_FieldIndex)index;

                switch (enu)
                {
                case LocationCellEnablePoint_FieldIndex.Actor:
                    this.Actor = (Exception?)obj;
                    break;

                case LocationCellEnablePoint_FieldIndex.Ref:
                    this.Ref = (Exception?)obj;
                    break;

                case LocationCellEnablePoint_FieldIndex.Grid:
                    this.Grid = (Exception?)obj;
                    break;

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