Skip to content

Commit

Permalink
Fix type constraints on DefaultOptionsFormatter and DefaultOptionsFor…
Browse files Browse the repository at this point in the history
…matterResolver (#8384)
  • Loading branch information
ReubenBond authored Apr 11, 2023
1 parent 5ea07d6 commit 9fc7f32
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Orleans
/// Default implementation of <see cref="IOptionFormatter{T}"/>.
/// </summary>
/// <typeparam name="T">The options type.</typeparam>
internal sealed class DefaultOptionsFormatter<T> : IOptionFormatter<T> where T : class, new()
internal sealed class DefaultOptionsFormatter<T> : IOptionFormatter<T> where T : class
{
private readonly T _options;

Expand Down Expand Up @@ -130,7 +130,7 @@ private static IEnumerable<string> FormatProperty(object options, PropertyInfo p
}
}

internal class DefaultOptionsFormatterResolver<T> : IOptionFormatterResolver<T> where T: class, new()
internal class DefaultOptionsFormatterResolver<T> : IOptionFormatterResolver<T> where T: class
{
private readonly IOptionsMonitor<T> _optionsMonitor;

Expand Down

0 comments on commit 9fc7f32

Please sign in to comment.