コード例 #1
0
        /// <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) + "]");
        }
コード例 #2
0
        /// <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) + "]");
        }
コード例 #3
0
 /// <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) + "]";
 }
コード例 #4
0
 /// <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) + "]";
 }