Esempio n. 1
0
        public FluentClass Class(string name)
        {
            FluentClass res;

            if (!mClasses.TryGetValue(name, out res))
            {
                res = new FluentClass(name);
                mClasses.Add(name, res);
            }

            return res;
        }
        public FluentClass Class(string name)
        {
            FluentClass res = null;

            if (!mClasses.TryGetValue(name, out res))
            {
                res = new FluentClass(name);
                mClasses.Add(name, res);
            }

            return(res);
        }
Esempio n. 3
0
        /// <summary>
        /// Create a class of "name"
        /// </summary>
        /// <param name="name">Name of resulting class</param>
        /// <returns></returns>
        public FluentClass Class(string name, string parent)
        {
            FluentClass res;

            if (!mClasses.TryGetValue(name, out res))
            {
                res = new FluentClass(name, parent, this.Level + 1);
                mClasses.Add(name, res);
            }

            return(res);
        }
Esempio n. 4
0
        /// <summary>
        /// Create a class of "name"
        /// </summary>
        /// <param name="name">Name of resulting class</param>
        /// <returns></returns>
        public FluentClass Class(string name, string parent)
        {
            FluentClass res;

            if (!mClasses.TryGetValue(name, out res)) {
                res = new FluentClass(name, parent, this.Level + 1);
                mClasses.Add(name, res);
            }

            return res;
        }