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

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

                case LinkedReferences_FieldIndex.KeywordOrReference:
                    return(KeywordOrReference);

                case LinkedReferences_FieldIndex.Reference:
                    return(Reference);

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

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

                case LinkedReferences_FieldIndex.KeywordOrReference:
                    this.KeywordOrReference = (Exception?)obj;
                    break;

                case LinkedReferences_FieldIndex.Reference:
                    this.Reference = (Exception?)obj;
                    break;

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