| 
 | 
 
1.1(bate9) 中新增运行C#代码的功能 
在新建步骤的时候会自动在代码片段中添加默认的方法,这个方法名不能修改,默认调用的方法 
-  public static void Execute( Dictionary<string, string> stringDic,  Dictionary<string, List<string>> listDic, Dictionary<string, int> intDic)
 
 -         {
 
 -           
 
 -         }
 
  复制代码 在这个方法中可以对变量的值进行操作 key 是变量名  value 是变量的值 
默认引用的程序集 
- using System;
 
 - using System.Windows.Forms;
 
 - using System.Collections.Generic;
 
 - using System.Text.RegularExpressions;
 
 - using System.Text;
 
 - using System.IO;
 
 - using System.Data;
 
 - using System.Threading;
 
 - using System.Net;
 
 - using System.Timers;
 
 - using System.Web;
 
 - using System.Collections;
 
  复制代码 在方法中可以对文本型变量,List变量,计数器变量进行读写操作 
 
 
1. 修改变量Test的值 为 lll  
-  public static void Execute( Dictionary<string, string> stringDic,  Dictionary<string, List<string>> listDic, Dictionary<string, int> intDic)
 
 -         {
 
 -             stringDic["Test"] = "lll";
 
 -         }
 
  复制代码 2.判断文本型变量[c]的值为a时清空List变量[a]的值 
- public static void Execute( Dictionary<string, string> stringDic,  Dictionary<string, List<string>> listDic, Dictionary<string, int> intDic)
 
 -         {
 
 -             if (stringDic.ContainsKey("c") == false) return;
 
 -             if (stringDic["c"] == "a" && listDic.ContainsKey("a")) listDic["a"] = new List<string>();
 
 -         }
 
  复制代码 
 
 
 
 |   
 
 
 
 |