Skip to content

Commit 9c112f8

Browse files
Sync shared code from runtime (#63137)
Co-authored-by: Tratcher <[email protected]>
1 parent b52c80f commit 9c112f8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Shared/runtime/Http2/Hpack/HuffmanDecodingException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ public HuffmanDecodingException(string message)
1919
{
2020
}
2121

22-
#if NET8_0_OR_GREATER
22+
#if NET
2323
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
2424
#endif
2525
private HuffmanDecodingException(SerializationInfo info, StreamingContext context)
2626
: base(info, context)
2727
{
2828
}
2929

30-
#if NET8_0_OR_GREATER
30+
#if NET
3131
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
3232
#endif
3333
void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
3434
{
3535
base.GetObjectData(serializationInfo, streamingContext);
3636
}
3737

38-
#if NET8_0_OR_GREATER
38+
#if NET
3939
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
4040
[EditorBrowsable(EditorBrowsableState.Never)]
4141
#endif

src/Shared/runtime/Http3/QPack/QPackDecodingException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public QPackDecodingException(string message, Exception innerException) : base(m
2121
{
2222
}
2323

24-
#if NET8_0_OR_GREATER
24+
#if NET
2525
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
2626
#endif
2727
private QPackDecodingException(SerializationInfo info, StreamingContext context) : base(info, context)

src/Shared/runtime/Http3/QPack/QPackEncodingException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public QPackEncodingException(string message, Exception innerException)
1818
{
1919
}
2020

21-
#if NET8_0_OR_GREATER
21+
#if NET
2222
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
2323
#endif
2424
private QPackEncodingException(SerializationInfo info, StreamingContext context) : base(info, context)

0 commit comments

Comments
 (0)