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

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

                case EnableParent_FieldIndex.Flags:
                    return(Flags);

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

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

                case EnableParent_FieldIndex.Flags:
                    this.Flags = (Exception?)obj;
                    break;

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