﻿// Decompiled with JetBrains decompiler
// Type: System.Xml.XPath.ExprNumeric
// Assembly: System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
// MVID: B96316B8-9B8D-4ED8-8305-8C4F91B6775A
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Universe Stuff\LOCO Server\Unity Web Player Extractor\Saved Files\LOCO Server.unity3d_unpacked\System.Xml.dll

namespace System.Xml.XPath
{
  internal abstract class ExprNumeric : ExprBinary
  {
    public override XPathResultType ReturnType
    {
      get
      {
        return XPathResultType.Number;
      }
    }

    public ExprNumeric(Expression left, Expression right)
      : base(left, right)
    {
    }

    public override Expression Optimize()
    {
      base.Optimize();
      if (!this.HasStaticValue)
        return (Expression) this;
      return (Expression) new ExprNumber(this.StaticValueAsNumber);
    }

    public override object Evaluate(BaseIterator iter)
    {
      return (object) this.EvaluateNumber(iter);
    }
  }
}
