示例#1
0
 public static string ConvertToUriLiteral(object value, ODataVersion version)
 {
     return(ODataUriUtils.ConvertToUriLiteral(value, version, null));
 }
示例#2
0
 /// <summary>
 /// Converts the given <paramref name="value"/> to a corresponding CLR type. Expects the
 /// <paramref name="value"/> to have already been properly unescaped from an actual Uri.
 /// </summary>
 /// <param name="value">Value from a Uri to be converted.</param>
 /// <param name="version">Version to be compliant with.</param>
 /// <returns>A CLR object that the <paramref name="value"/> represents.</returns>
 public static object ConvertFromUriLiteral(string value, ODataVersion version)
 {
     return(ODataUriUtils.ConvertFromUriLiteral(value, version, null, null));
 }