예제 #1
0
 public static string GetParamValue(ParamAddr param)
 {
     if (writers.TryGetValue(param, out string value))
     {
         writers.TryRemove(param, out string stub);
         return(value);
     }
     return(null);
 }
예제 #2
0
 public static void SetParamValue(ParamAddr param, string value)
 {
     writers.AddOrUpdate(param, value, (k, v) => value);
 }