예제 #1
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 (won't be EnumNode).</returns>
 public static object ConvertFromUriLiteral(string value, ODataVersion version)
 {
     return(ODataUriUtils.ConvertFromUriLiteral(value, version, null, null));
 }
예제 #2
0
 public static string ConvertToUriLiteral(object value, ODataVersion version)
 {
     return(ODataUriUtils.ConvertToUriLiteral(value, version, null, true));
 }
예제 #3
0
 public static string ConvertToUriLiteral(object value, ODataVersion version, IEdmModel model)
 {
     return(ODataUriUtils.ConvertToUriLiteral(value, version, model, true /*isIeee754Compatible*/));
 }
예제 #4
0
 public static string ConvertToUriLiteral(object value, ODataVersion version, bool isIeee754Compatible)
 {
     return(ODataUriUtils.ConvertToUriLiteral(value, version, null, isIeee754Compatible));
 }