示例#1
0
 /// <summary>
 /// True if all specified keys are present
 /// </summary>
 /// <param name="state"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public static bool Has(this ASagaState state, params string[] key)
 => key.All(k => state.RawData.ContainsKey(k));
示例#2
0
 public static T Get <T>(this ASagaState state, string key, T defValue = default(T))
 => state.RawData.GetValue(key, defValue);