private string GetSavedComment()
        {
            var _d_ts   = string.Empty;
            var comment = new CommentIntellisense()
            {
                JsForm        = ProcessForms.Select(f => f.Name).ToList <string>(),
                JsWebApi      = IsJsWebApi,
                IsDebugForm   = IsDebugForm,
                IsDebugWebApi = IsDebugWebApi
            };

            _d_ts += $"//{SimpleJson.SerializeObject(comment)}";
            _d_ts  = _d_ts.Replace("\"", "'");
            return(_d_ts);
        }
Пример #2
0
        private string GetSavedComment()
        {
            var _d_ts   = string.Empty;
            var comment = new CommentTypeScriptDeclaration()
            {
                JsForm        = ProcessForms.Select(f => FormHelper.GetFormName(f.Name)).ToList <string>(),
                JsWebApi      = IsJsWebApi,
                IsDebugForm   = IsDebugForm,
                IsDebugWebApi = IsDebugWebApi
            };

            _d_ts += $"//{SimpleJson.SerializeObject(comment)}";
            _d_ts  = _d_ts.Replace("\"", "'");
            return(_d_ts);
        }