예제 #1
0
            public object?GetNthMask(int index)
            {
                MusicTypeData_FieldIndex enu = (MusicTypeData_FieldIndex)index;

                switch (enu)
                {
                case MusicTypeData_FieldIndex.Priority:
                    return(Priority);

                case MusicTypeData_FieldIndex.DuckingDecibel:
                    return(DuckingDecibel);

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

                switch (enu)
                {
                case MusicTypeData_FieldIndex.Priority:
                    this.Priority = (Exception?)obj;
                    break;

                case MusicTypeData_FieldIndex.DuckingDecibel:
                    this.DuckingDecibel = (Exception?)obj;
                    break;

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