Example #1
0
        /// <exception cref="BadSyntaxException">
        /// The <paramref name="name"/> does not fit to the syntax.
        /// </exception>
        public override Method AddMethod()
        {
            Method method = new CSharpMethod(this);

            AddOperation(method);
            return(method);
        }
Example #2
0
        public override Operation Clone(CompositeType newParent)
        {
            CSharpMethod method = new CSharpMethod(newParent);

            method.CopyFrom(this);
            return(method);
        }
Example #3
0
        /// <exception cref="BadSyntaxException">
        /// The <paramref name="name"/> does not fit to the syntax.
        /// </exception>
        public override Method AddMethod()
        {
            Method method = new CSharpMethod(this);

            method.AccessModifier = AccessModifier.Public;
            AddOperation(method);

            return(method);
        }