Example #1
0
        /// <summary>
        /// Sets the access-strategy to field and the naming-strategy to pascalcase, with the specified prefix.
        /// </summary>
        /// <param name="prefix">Naming-strategy prefix</param>
        public void PascalCaseField(Prefix prefix)
        {
            if (prefix == Prefix.None)
            {
                throw new InvalidPrefixException(InvalidPrefixPascalCaseFieldNone);
            }

            setValue("field.pascalcase" + prefix.Value);
        }
Example #2
0
        /// <summary>
        /// Sets the access-strategy to read-only property (nosetter) and the naming-strategy to pascalcase, with the specified prefix.
        /// </summary>
        /// <param name="prefix">Naming-strategy prefix</param>
        public void ReadOnlyPropertyThroughPascalCaseField(Prefix prefix)
        {
            if (prefix == Prefix.None)
            {
                throw new InvalidPrefixException(InvalidPrefixPascalCaseFieldNone);
            }

            setValue("nosetter.pascalcase" + prefix.Value);
        }
Example #3
0
        /// <summary>
        /// Sets the access-strategy to field and the naming-strategy to lowercase, with the specified prefix.
        /// </summary>
        /// <param name="prefix">Naming-strategy prefix</param>
        public void LowerCaseField(Prefix prefix)
        {
            if (prefix == Prefix.m)
            {
                throw new InvalidPrefixException(InvalidPrefixLowerCaseFieldM);
            }
            if (prefix == Prefix.mUnderscore)
            {
                throw new InvalidPrefixException(InvalidPrefixLowerCaseFieldMUnderscore);
            }

            setValue("field.lowercase" + prefix.Value);
        }
Example #4
0
        /// <summary>
        /// Sets the access-strategy to read-only property (nosetter) and the naming-strategy to lowercase.
        /// </summary>
        /// <param name="prefix">Naming-strategy prefix</param>
        public void ReadOnlyPropertyThroughLowerCaseField(Prefix prefix)
        {
            if (prefix == Prefix.m)
            {
                throw new InvalidPrefixException(InvalidPrefixLowerCaseFieldM);
            }
            if (prefix == Prefix.mUnderscore)
            {
                throw new InvalidPrefixException(InvalidPrefixLowerCaseFieldMUnderscore);
            }

            setValue("nosetter.lowercase" + prefix.Value);
        }
        /// <summary>
        /// Sets the access-strategy to field and the naming-strategy to lowercase, with the specified prefix.
        /// </summary>
        /// <param name="prefix">Naming-strategy prefix</param>
        public new T LowerCaseField(Prefix prefix)
        {
            base.LowerCaseField(prefix);

            return(parent);
        }
        /// <summary>
        /// Sets the access-strategy to field and the naming-strategy to camelcase, with the specified prefix.
        /// </summary>
        /// <param name="prefix">Naming-strategy prefix</param>
        public new T CamelCaseField(Prefix prefix)
        {
            base.CamelCaseField(prefix);

            return(parent);
        }
        /// <summary>
        /// Sets the access-strategy to read-only property (nosetter) and the naming-strategy to pascalcase, with the specified prefix.
        /// </summary>
        /// <param name="prefix">Naming-strategy prefix</param>
        public new T ReadOnlyPropertyThroughPascalCaseField(Prefix prefix)
        {
            base.ReadOnlyPropertyThroughPascalCaseField(prefix);

            return(parent);
        }
        /// <summary>
        /// Sets the access-strategy to field and the naming-strategy to pascalcase, with the specified prefix.
        /// </summary>
        /// <param name="prefix">Naming-strategy prefix</param>
        public new T PascalCaseField(Prefix prefix)
        {
            base.PascalCaseField(prefix);

            return(parent);
        }