Пример #1
0
            public object?GetNthMask(int index)
            {
                AIPackageLocation_FieldIndex enu = (AIPackageLocation_FieldIndex)index;

                switch (enu)
                {
                case AIPackageLocation_FieldIndex.Type:
                    return(Type);

                case AIPackageLocation_FieldIndex.LocationReference:
                    return(LocationReference);

                case AIPackageLocation_FieldIndex.Radius:
                    return(Radius);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Пример #2
0
            public void SetNthMask(int index, object obj)
            {
                AIPackageLocation_FieldIndex enu = (AIPackageLocation_FieldIndex)index;

                switch (enu)
                {
                case AIPackageLocation_FieldIndex.Type:
                    this.Type = (Exception?)obj;
                    break;

                case AIPackageLocation_FieldIndex.LocationReference:
                    this.LocationReference = (Exception?)obj;
                    break;

                case AIPackageLocation_FieldIndex.Radius:
                    this.Radius = (Exception?)obj;
                    break;

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