Microsoft.Zing.Splicer.SetExceptionList C# (CSharp) Method

SetExceptionList() private method

private SetExceptionList ( ) : void
return void
        private void SetExceptionList()
        {
            EnumNode e = (EnumNode)Templates.GetMemberByName(appClass.Members, "Exceptions");

            int nextValue = 0;
            foreach (DictionaryEntry de in this.exceptionNames)
            {
                Identifier id = new Identifier((string)de.Key);
                Field f = new Field(e, null, FieldFlags.Public | FieldFlags.Literal | FieldFlags.Static | FieldFlags.HasDefault, id, e, null);
                f.Initializer = new Literal(nextValue++, SystemTypes.Int32);
                e.Members.Add(f);
                f.DeclaringType = e;
            }
        }