Esempio n. 1
0
            public object?GetNthMask(int index)
            {
                PackageRoot_FieldIndex enu = (PackageRoot_FieldIndex)index;

                switch (enu)
                {
                case PackageRoot_FieldIndex.BranchCount:
                    return(BranchCount);

                case PackageRoot_FieldIndex.Flags:
                    return(Flags);

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

                switch (enu)
                {
                case PackageRoot_FieldIndex.BranchCount:
                    this.BranchCount = (Exception?)obj;
                    break;

                case PackageRoot_FieldIndex.Flags:
                    this.Flags = (Exception?)obj;
                    break;

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