An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/Common/actions/TwoWayReferenceFieldValue.cs

28 lines
701 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLocal.Common.actions {
class TwoWayReferenceFieldValue : ReferenceFieldValue {
public delegate string Calculator(string old, string reference);
private Calculator calculator;
public TwoWayReferenceFieldValue(AbstractChange referenced, Calculator calculator)
: base(referenced) {
this.calculator = calculator;
}
public override string getStringRepresentation() {
throw new NotSupportedException();
}
public override string getStringRepresentation(string oldInfo) {
return this.calculator(oldInfo, base.getStringRepresentation());
}
}
}