Exemple #1
0
            public object?GetNthMask(int index)
            {
                InterCellPoint_FieldIndex enu = (InterCellPoint_FieldIndex)index;

                switch (enu)
                {
                case InterCellPoint_FieldIndex.PointID:
                    return(PointID);

                case InterCellPoint_FieldIndex.Point:
                    return(Point);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Exemple #2
0
            public void SetNthMask(int index, object obj)
            {
                InterCellPoint_FieldIndex enu = (InterCellPoint_FieldIndex)index;

                switch (enu)
                {
                case InterCellPoint_FieldIndex.PointID:
                    this.PointID = (Exception?)obj;
                    break;

                case InterCellPoint_FieldIndex.Point:
                    this.Point = (Exception?)obj;
                    break;

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