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

                switch (enu)
                {
                case ActivateParent_FieldIndex.Reference:
                    return(Reference);

                case ActivateParent_FieldIndex.Delay:
                    return(Delay);

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

                switch (enu)
                {
                case ActivateParent_FieldIndex.Reference:
                    this.Reference = (Exception?)obj;
                    break;

                case ActivateParent_FieldIndex.Delay:
                    this.Delay = (Exception?)obj;
                    break;

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