/// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public StringBuilder CreateClassCode()
        {
            ScriptTemplate.Mode = this.ModeType;
            StringBuilder result = ScriptTemplate.Init(AjaxClassItem.AjaxClass.RootNameSpace);

            ScriptTemplate.AppendClass(ref result, AjaxClassItem.ClassName);

            return(result);
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public String CreateFullCode(Boolean useTraditionalParameterForm)
        {
            var result = "";

            ScriptTemplate.Mode = this.ModeType;
            var script = ScriptTemplate.Init(AjaxClassItem.AjaxClass.RootNameSpace);

            ScriptTemplate.AppendClass(ref script, AjaxClassItem.ClassName);
            foreach (AjaxMethodItem method in AjaxClassItem.AjaxMethodItemCollection.Select(methodHash => methodHash.Value))
            {
                ScriptTemplate.CreateMethodBody(ref script, AjaxClassItem.ClassName, method.AjaxMethod.Name, method, method.Parameters, AjaxClassItem, useTraditionalParameterForm);
            }
            result = script.ToString();
            return(result);
        }