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

                switch (enu)
                {
                case ItemEntry_FieldIndex.Item:
                    return(Item);

                case ItemEntry_FieldIndex.Count:
                    return(Count);

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

                switch (enu)
                {
                case ItemEntry_FieldIndex.Item:
                    this.Item = (Exception?)obj;
                    break;

                case ItemEntry_FieldIndex.Count:
                    this.Count = (Exception?)obj;
                    break;

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