/// <summary>
        ///
        /// </summary>
        /// <param name="method"></param>
        /// <param name="useTraditionalParameterForm"> </param>
        /// <returns></returns>
        public String CreateMethodCode(AjaxMethodItem method, Boolean useTraditionalParameterForm)
        {
            ScriptTemplate.Mode = this.ModeType;
            var script = new StringBuilder();

            ScriptTemplate.CreateMethodBody(ref script, AjaxClassItem.ClassName, method.AjaxMethod.Name, method, method.Parameters, AjaxClassItem, useTraditionalParameterForm);

            return(script.ToString());
        }
        /// <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);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="method"></param>
        /// <param name="script"></param>
        /// <param name="useTraditionalParameterForm"> </param>
        public void CreateMethodCode(AjaxMethodItem method, ref StringBuilder script, Boolean useTraditionalParameterForm)
        {
            ScriptTemplate.Mode = this.ModeType;

            ScriptTemplate.CreateMethodBody(ref script, AjaxClassItem.ClassName, method.AjaxMethod.Name, method, method.Parameters, AjaxClassItem, useTraditionalParameterForm);
        }