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

                switch (enu)
                {
                case WaterReflection_FieldIndex.Versioning:
                    return(Versioning);

                case WaterReflection_FieldIndex.Water:
                    return(Water);

                case WaterReflection_FieldIndex.Type:
                    return(Type);

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

                switch (enu)
                {
                case WaterReflection_FieldIndex.Versioning:
                    this.Versioning = (Exception?)obj;
                    break;

                case WaterReflection_FieldIndex.Water:
                    this.Water = (Exception?)obj;
                    break;

                case WaterReflection_FieldIndex.Type:
                    this.Type = (Exception?)obj;
                    break;

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