Seal public Protocol reference types to prevent external inheritance (#1232)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
parent
0c35f8f333
commit
712068b161
1 changed files with 16 additions and 30 deletions
|
|
@ -69,7 +69,7 @@ public abstract class ContentBlock
|
|||
/// Provides a polymorphic converter for the <see cref="ContentBlock"/> class that doesn't require
|
||||
/// setting <see cref="JsonSerializerOptions.AllowOutOfOrderMetadataProperties"/> explicitly.
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class Converter : JsonConverter<ContentBlock>
|
||||
public sealed class Converter : JsonConverter<ContentBlock>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ContentBlock? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
||||
|
|
|
|||
Loading…
Reference in a new issue