Skip to content

Commit

Permalink
Remove unused extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dwcullop committed Nov 8, 2023
1 parent 945e407 commit de49b48
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/DynamicData/Cache/CacheChangeSetEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,4 @@ public static ChangeSet<TObject, TKey> ToConcreteType<TObject, TKey>(this IChang
where TObject : notnull
where TKey : notnull =>
changeSet as ChangeSet<TObject, TKey> ?? throw new NotSupportedException("Dynamic Data does not support a custom implementation of IChangeSet");

/// <summary>
/// SortedChangeSet version of <see cref="ToConcreteType{TObject, TKey}(IChangeSet{TObject, TKey})"/>.
/// </summary>
/// <typeparam name="TObject">ChangeSet Object Type.</typeparam>
/// <typeparam name="TKey">ChangeSet Key Type.</typeparam>
/// <param name="changeSet">ChangeSet to be converted.</param>
/// <returns>Concrete Instance of the ChangeSet.</returns>
/// <exception cref="NotSupportedException">A custom implementation was found.</exception>
public static SortedChangeSet<TObject, TKey> ToConcreteType<TObject, TKey>(this ISortedChangeSet<TObject, TKey> changeSet)
where TObject : notnull
where TKey : notnull =>
changeSet as SortedChangeSet<TObject, TKey> ?? throw new NotSupportedException("Dynamic Data does not support a custom implementation of IChangeSet");
}

0 comments on commit de49b48

Please sign in to comment.