private CaseModel ExeEvent_Section_ASCII_String()
 {
     return(new CaseModel()
     {
         NameSign = @"部分的 ASCII 码字符",
         ExeEvent = () => {
             PrintMethod(@"所有常用字符:", CommonData.ASCII_ALL());
             PrintMethod(@"常用文本字符", CommonData.ASCII_WordText());
             PrintMethod(@"特殊字符:", CommonData.ASCII_Special());
             PrintMethod(@"阿拉伯数字:", CommonData.ASCII_Number());
             PrintMethod(@"小写英文:", CommonData.ASCII_LowerEnglish());
             PrintMethod(@"大写英文:", CommonData.ASCII_UpperEnglish());
         },
     });
 }
Esempio n. 2
0
 public CaseModel Func_ForeachPrintALLChars()
 {
     return(new CaseModel()
     {
         NameSign = @"遍历输出所有字符",
         ExeEvent = () => {
             StringBuilder str = new StringBuilder();
             foreach (char c in CommonData.ASCII_ALL())
             {
                 str.Append(c);
             }
             Console.WriteLine(str.ToString());
             return true;
         },
     });
 }