/// <summary> /// Creates a new key by concatenating the contents of the supplied /// arguments. /// </summary> public Key(params object[] args) { TrapBuilder = new IdTrapBuilder(); foreach (var arg in args) { TrapBuilder.Append(arg); } }
/// <summary> /// Creates a new key by applying the supplied action to an empty /// trap builder. /// </summary> public Key(Action <ITrapBuilder> action) { TrapBuilder = new IdTrapBuilder(); action(TrapBuilder); }