Ejemplo n.º 1
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="parentToken">The token whose value to set.</param>
 /// <param name="value">The token value to set.</param>
 /// <param name="conditions">The conditions that must match to set this value.</param>
 public DynamicTokenValue(ManagedManualToken parentToken, IManagedTokenString value, IEnumerable <Condition> conditions)
 {
     this.ParentToken = parentToken;
     this.Value       = value;
     this.Conditions  = conditions.ToArray();
     this.Contextuals = new AggregateContextual()
                        .Add(value)
                        .Add(this.Conditions);
 }
Ejemplo n.º 2
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="parentToken">The token whose value to set.</param>
 /// <param name="value">The token value to set.</param>
 /// <param name="conditions">The conditions that must match to set this value.</param>
 public DynamicTokenValue(ManagedManualToken parentToken, IManagedTokenString value, Condition[] conditions)
 {
     this.ParentToken = parentToken;
     this.Value       = value;
     this.Conditions  = conditions;
     this.Contextuals = new AggregateContextual()
                        .Add(value)
                        .Add(this.Conditions);
 }