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

                switch (enu)
                {
                case Part_FieldIndex.PartType:
                    return(PartType);

                case Part_FieldIndex.FileName:
                    return(FileName);

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

                switch (enu)
                {
                case Part_FieldIndex.PartType:
                    this.PartType = (Exception?)obj;
                    break;

                case Part_FieldIndex.FileName:
                    this.FileName = (Exception?)obj;
                    break;

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