Skip to content

Commit 05fe604

Browse files
committed
#7469 Renamed extension method to avoid ambiguous signature
1 parent 7fbe482 commit 05fe604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class PublishedElementExtensions
1717
/// <summary>
1818
/// Gets the value of a property.
1919
/// </summary>
20-
public static TValue Value<TModel, TValue>(this TModel model, Expression<Func<TModel, TValue>> property, string culture = null, string segment = null, Fallback fallback = default, TValue defaultValue = default)
20+
public static TValue ValueFor<TModel, TValue>(this TModel model, Expression<Func<TModel, TValue>> property, string culture = null, string segment = null, Fallback fallback = default, TValue defaultValue = default)
2121
where TModel : IPublishedElement
2222
{
2323
var alias = GetAlias(model, property);
@@ -45,7 +45,7 @@ private static string GetAlias<TModel, TValue>(TModel model, Expression<Func<TMo
4545
var attribute = member.GetCustomAttribute<ImplementPropertyTypeAttribute>();
4646
if (attribute == null)
4747
throw new InvalidOperationException("Property is not marked with ImplementPropertyType attribute.");
48-
48+
4949
return attribute.Alias;
5050
}
5151
}

0 commit comments

Comments
 (0)