示例#1
0
        private static void AddFunc(string fileName, string funcName, string desc, params string[] args)
        {
            Dictionary <string, FuncDoc> file;

            if (!_doc.TryGetValue(fileName, out file))
            {
                file           = new Dictionary <string, FuncDoc>();
                _doc[fileName] = file;
            }

            file[funcName] = new FuncDoc(funcName, desc, args);
        }
示例#2
0
 public FuncDocVM(FuncDoc lm, int index)
 {
     Index       = index;
     Name        = lm.Name;
     Title       = lm.Title;
     Description = lm.Description;
     Parameters  = lm.Parameters.Select(i => new ParameterDocVM()
     {
         Name        = i.Name,
         Type        = string.Join(", ", i.Type.Select(j => MathyDic.GetDataTypeDisplayName(j))),
         Description = i.Description
     }).ToArray();
     Returns = lm.Returns.Select(i => new ReturnDocVM()
     {
         Type        = string.Join(", ", i.Type.Select(j => MathyDic.GetDataTypeDisplayName(j))),
         Description = i.Description
     }).ToArray();
     Article = new FuncArticleVM(lm.Article);
 }