// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
using System.Collections;
using System.Collections.Specialized;
using System.Text;
using System.Xml.XPath;
using System.Xml;
-namespace System.Web.UI {
- public sealed class XPathBinder {
- private XPathBinder ()
+namespace System.Web.UI
+{
+ public sealed class XPathBinder
+ {
+ XPathBinder ()
{
}
public static object Eval (object container, string xpath)
{
- return Eval (container, xpath, null);
+ return Eval (container, xpath, (IXmlNamespaceResolver)null);
}
- public static string Eval (object container, string xpath, string format)
- {
- return Eval (container, xpath, format, null);
- }
-
- public static string Eval (object container, string xpath, string format, IXmlNamespaceResolver resolver)
+ public static object Eval (object container, string xpath, IXmlNamespaceResolver resolver)
{
if (xpath == null || xpath.Length == 0)
throw new ArgumentNullException ("xpath");
return null;
}
+ return result;
+ }
+
+ public static string Eval (object container, string xpath, string format)
+ {
+ return Eval (container, xpath, format, null);
+ }
+
+ public static string Eval (object container, string xpath, string format, IXmlNamespaceResolver resolver)
+ {
+ object result = Eval (container, xpath, resolver);
+
if (result == null)
return String.Empty;
if (format == null || format.Length == 0)
}
}
-#endif