/// <summary> /// Writes an ODataPath to string /// </summary> /// <param name="path"></param> /// <returns></returns> public static string ToString(ODataPath path) { // TODO: Consider making this print 1 line per segment string pathname = path.Aggregate("Path[", (current, segment) => current + (ToString(segment) + "/")); return(pathname.Substring(0, pathname.Length - 1) + "]"); }
/// <summary> /// Writes an ODataPath to string /// </summary> /// <param name="path"></param> /// <returns></returns> public static string ToSingleLineString(ODataPath path) { string pathname = path.Aggregate("Path[", (current, segment) => current + (ToString(segment) + "/")); return(pathname.Substring(0, pathname.Length - 1) + "]"); }
/// <summary> /// Writes an ODataPath to string /// </summary> /// <param name="path"></param> /// <returns></returns> public static string ToSingleLineString(ODataPath path) { string pathname = path.Aggregate("Path[", (current, segment) => current + (ToString(segment) + "/")); return pathname.Substring(0, pathname.Length - 1) + "]"; }
/// <summary> /// Writes an ODataPath to string /// </summary> /// <param name="path"></param> /// <returns></returns> public static string ToString(ODataPath path) { // TODO: Consider making this print 1 line per segment string pathname = path.Aggregate("Path[", (current, segment) => current + (ToString(segment) + "/")); return pathname.Substring(0, pathname.Length - 1) + "]"; }