/// <summary> /// it should be a reference to the object /// </summary> /// <returns></returns> public override CodeExpression ExportCode(IMethodCompile method) { MathNode.Trace("{0}.ExportCode for {1}", this.GetType().Name, _value); if (_value == null) { throw new MathException("object reference is not set"); } IRaisCodeCompiler cc = (IRaisCodeCompiler)MathNode.GetService(typeof(IRaisCodeCompiler)); if (cc == null) { throw new MathException("IRaisCodeCompiler is not available"); } return(_value.ExportCode(cc.CurrentXPath)); }