apply sorting ...
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using xCommons.Extensions;
|
||||
using xDataService.Models;
|
||||
using System.ComponentModel;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xDataService.Extensions
|
||||
{
|
||||
public static class XReferenceExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts an XReference<T> to String Representation ...
|
||||
/// Converts an XReference to String Representation ...
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="source"></param>
|
||||
@@ -42,7 +42,7 @@ namespace xDataService.Extensions
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parse an String and Extract to XReference<T> if it's Described ...
|
||||
/// Parse an String and Extract to XReference if it's Described ...
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="source"></param>
|
||||
@@ -75,9 +75,10 @@ namespace xDataService.Extensions
|
||||
try
|
||||
{
|
||||
referencedTo = (T)Convert.ChangeType(parts[1], typeof(T));
|
||||
} catch
|
||||
}
|
||||
catch
|
||||
{
|
||||
referencedTo = (T)TypeDescriptor.GetConverter(typeof(T)).ConvertFrom(parts[1]);
|
||||
referencedTo = (T)TypeDescriptor.GetConverter(typeof(T)).ConvertFrom(parts[1]);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -96,7 +97,7 @@ namespace xDataService.Extensions
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts a Collection of XReference<T> to it's String Representation ...
|
||||
/// Converts a Collection of XReference to it's String Representation ...
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="source"></param>
|
||||
@@ -150,7 +151,7 @@ namespace xDataService.Extensions
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parse an string to XReference<T> Collection Representation ...
|
||||
/// Parse an string to XReference Collection Representation ...
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="source"></param>
|
||||
|
||||
Reference in New Issue
Block a user