Example #1
0
        public override Operation Clone(CompositeType newParent)
        {
            CSharpProperty property = new CSharpProperty(newParent);

            property.CopyFrom(this);
            return(property);
        }
Example #2
0
        /// <exception cref="BadSyntaxException">
        /// The <paramref name="name"/> does not fit to the syntax.
        /// </exception>
        public override Property AddProperty()
        {
            Property property = new CSharpProperty(this);

            AddOperation(property);
            return(property);
        }
Example #3
0
        /// <exception cref="BadSyntaxException">
        /// The <paramref name="name"/> does not fit to the syntax.
        /// </exception>
        public override Property AddProperty()
        {
            Property property = new CSharpProperty(this);

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

            return(property);
        }
Example #4
0
        /// <exception cref="BadSyntaxException">
        /// The <paramref name="name"/> does not fit to the syntax.
        /// </exception>
        public override Property AddProperty()
        {
            Property property = new CSharpProperty(this)
            {
                AccessModifier = AccessModifier.Public,
                IsStatic       = (Modifier == ClassModifier.Static)
            };

            AddOperation(property);
            return(property);
        }
Example #5
0
		public override Operation Clone(CompositeType newParent)
		{
			CSharpProperty property = new CSharpProperty(newParent);
			property.CopyFrom(this);
			return property;
		}
Example #6
0
		/// <exception cref="BadSyntaxException">
		/// The <paramref name="name"/> does not fit to the syntax.
		/// </exception>
		public override Property AddProperty()
		{
			Property property = new CSharpProperty(this);

			property.AccessModifier = AccessModifier.Public;
			property.IsStatic = (Modifier == ClassModifier.Static);
			
			AddOperation(property);
			return property;
		}
Example #7
0
		/// <exception cref="BadSyntaxException">
		/// The <paramref name="name"/> does not fit to the syntax.
		/// </exception>
		public override Property AddProperty()
		{
			Property property = new CSharpProperty(this);

			AddOperation(property);
			return property;
		}