Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
 /// <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);
 }