Inheritance: NClass.Core.Method
Exemple #1
0
        public override Operation Clone(CompositeType newParent)
        {
            CSharpMethod method = new CSharpMethod(newParent);

            method.CopyFrom(this);
            return(method);
        }
Exemple #2
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 #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);
        }
Exemple #4
0
        /// <exception cref="BadSyntaxException">
        /// The <paramref name="name"/> does not fit to the syntax.
        /// </exception>
        public override Method AddMethod()
        {
            Method method = new CSharpMethod(this)
            {
                AccessModifier = AccessModifier.Public,
                IsStatic       = (Modifier == ClassModifier.Static)
            };

            AddOperation(method);
            return(method);
        }
Exemple #5
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;
			method.IsStatic = (Modifier == ClassModifier.Static);
			
			AddOperation(method);
			return method;
		}
Exemple #6
0
		public override Operation Clone(CompositeType newParent)
		{
			CSharpMethod method = new CSharpMethod(newParent);
			method.CopyFrom(this);
			return method;
		}
Exemple #7
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;
		}