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

                switch (enu)
                {
                case LinkedReferenceColor_FieldIndex.Start:
                    return(Start);

                case LinkedReferenceColor_FieldIndex.End:
                    return(End);

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

                switch (enu)
                {
                case LinkedReferenceColor_FieldIndex.Start:
                    this.Start = (Exception?)obj;
                    break;

                case LinkedReferenceColor_FieldIndex.End:
                    this.End = (Exception?)obj;
                    break;

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