private static int CompareProperty(IPropertyMapping left, IPropertyMapping right) { if (left.GetType() == right.GetType()) { return(string.Compare(left.Name, right.Name, StringComparison.CurrentCulture)); } if (left is CollectionMapping) { return(1); } return(-1); }
private static int CompareProperty(IPropertyMapping left, IPropertyMapping right) { if (left.GetType() == right.GetType()) { return string.Compare(left.Name, right.Name, StringComparison.CurrentCulture); } if (left is CollectionMapping) { return 1; } return -1; }