Beispiel #1
0
            public void SetNthMask(int index, object obj)
            {
                SeasonalIngredientProduction_FieldIndex enu = (SeasonalIngredientProduction_FieldIndex)index;

                switch (enu)
                {
                case SeasonalIngredientProduction_FieldIndex.Spring:
                    this.Spring = (Exception?)obj;
                    break;

                case SeasonalIngredientProduction_FieldIndex.Summer:
                    this.Summer = (Exception?)obj;
                    break;

                case SeasonalIngredientProduction_FieldIndex.Fall:
                    this.Fall = (Exception?)obj;
                    break;

                case SeasonalIngredientProduction_FieldIndex.Winter:
                    this.Winter = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Beispiel #2
0
            public object?GetNthMask(int index)
            {
                SeasonalIngredientProduction_FieldIndex enu = (SeasonalIngredientProduction_FieldIndex)index;

                switch (enu)
                {
                case SeasonalIngredientProduction_FieldIndex.Spring:
                    return(Spring);

                case SeasonalIngredientProduction_FieldIndex.Summer:
                    return(Summer);

                case SeasonalIngredientProduction_FieldIndex.Fall:
                    return(Fall);

                case SeasonalIngredientProduction_FieldIndex.Winter:
                    return(Winter);

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