Esempio n. 1
0
            public object?GetNthMask(int index)
            {
                Alpha_FieldIndex enu = (Alpha_FieldIndex)index;

                switch (enu)
                {
                case Alpha_FieldIndex.Cutoff:
                    return(Cutoff);

                case Alpha_FieldIndex.Base:
                    return(Base);

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

                switch (enu)
                {
                case Alpha_FieldIndex.Cutoff:
                    this.Cutoff = (Exception?)obj;
                    break;

                case Alpha_FieldIndex.Base:
                    this.Base = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Esempio n. 3
0
            public void SetNthException(int index, Exception ex)
            {
                Alpha_FieldIndex enu = (Alpha_FieldIndex)index;

                switch (enu)
                {
                case Alpha_FieldIndex.Cutoff:
                    this.Cutoff = ex;
                    break;

                case Alpha_FieldIndex.Base:
                    this.Base = ex;
                    break;

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