Skip to content

Commit

Permalink
Replace unsupported concise syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
gathogojr committed Jul 21, 2022
1 parent 419e150 commit 54d3aeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Microsoft.OData.Edm/ExtensionMethods/ExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ public static IEnumerable<IEdmOperationImport> OperationImports(this IEdmEntityC
/// </summary>
/// <param name="container">Reference to the calling object.</param>
/// <returns>collection of pairs of container element and NavigationPropertyBindings.</returns>
public static IEnumerable<(IEdmEntityContainerElement, IEdmNavigationPropertyBinding)> GetNavigationPropertyBindings(this IEdmEntityContainer container)
public static IEnumerable<Tuple<IEdmEntityContainerElement, IEdmNavigationPropertyBinding>> GetNavigationPropertyBindings(this IEdmEntityContainer container)
{
EdmUtil.CheckArgumentNull(container, "container");

Expand All @@ -1562,13 +1562,13 @@ public static IEnumerable<IEdmOperationImport> OperationImports(this IEdmEntityC
case IEdmEntitySet entitySet:
foreach(var binding in entitySet.NavigationPropertyBindings)
{
yield return (entitySet, binding);
yield return Tuple.Create<IEdmEntityContainerElement, IEdmNavigationPropertyBinding>(entitySet, binding);
}
break;
case IEdmSingleton singleton:
foreach (var binding in singleton.NavigationPropertyBindings)
{
yield return (singleton, binding);
yield return Tuple.Create< IEdmEntityContainerElement, IEdmNavigationPropertyBinding>(singleton, binding);
}
break;
default:
Expand Down

0 comments on commit 54d3aeb

Please sign in to comment.