Example #1
0
        /// <exception cref="BadSyntaxException">
        /// The <paramref name="name"/> does not fit to the syntax.
        /// </exception>
        public override Field AddField(string name)
        {
            Field field = new CSharpField(name, this);

            FieldList.Add(field);
            return(field);
        }
Example #2
0
        /// <exception cref="BadSyntaxException">
        /// The <paramref name="name"/> does not fit to the syntax.
        /// </exception>
        public override Field AddField(string name)
        {
            Field field = new CSharpField(name, this);

            field.AccessModifier = AccessModifier.Public;
            FieldList.Add(field);
            return(field);
        }