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

                switch (enu)
                {
                case AIPackageData_FieldIndex.Flags:
                    return(Flags);

                case AIPackageData_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)
            {
                AIPackageData_FieldIndex enu = (AIPackageData_FieldIndex)index;

                switch (enu)
                {
                case AIPackageData_FieldIndex.Flags:
                    this.Flags = (Exception?)obj;
                    break;

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

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