Exemple #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);
        }
Exemple #2
0
        public override Operation Clone(CompositeType newParent)
        {
            CSharpMethod method = new CSharpMethod(newParent);

            method.CopyFrom(this);
            return(method);
        }
Exemple #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);
        }