public override bool IsActive() { if (_eval == null) { _eval = RuntimeVar.MakeRuntimeVar(_var, _values); } return(_eval()); }
protected override void Init(XmlNode source, LoaderContext ctx) { _var = source.Attributes["Var"].InnerText; string s; if (ctx.VarAliases.TryGetValue(_var, out s)) { _var = s; } _values = source.Attributes["Values"].InnerText; _eval = RuntimeVar.MakeRuntimeVar(_var, _values); }