Skip to content

Commit 35c269d

Browse files
committed
Get rid of unneccessary namespaces
1 parent 3a5619e commit 35c269d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

MimeKit/Header.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ protected Header (ParserOptions options, HeaderId id, string name, byte[] field,
311311
/// <param name="value">The raw value of the header.</param>
312312
/// <param name="invalid"><see langword="true" /> if the header field is invalid; otherwise, <see langword="false" />.</param>
313313
#if NET5_0_OR_GREATER
314-
[System.Runtime.CompilerServices.SkipLocalsInit]
314+
[SkipLocalsInit]
315315
#endif
316316
internal protected Header (ParserOptions options, byte[] field, int fieldNameLength, byte[] value, bool invalid)
317317
{
@@ -344,7 +344,7 @@ internal protected Header (ParserOptions options, byte[] field, int fieldNameLen
344344
/// <param name="value">The raw value of the header.</param>
345345
/// <param name="invalid"><see langword="true" /> if the header field is invalid; otherwise, <see langword="false" />.</param>
346346
#if NET5_0_OR_GREATER
347-
[System.Runtime.CompilerServices.SkipLocalsInit]
347+
[SkipLocalsInit]
348348
#endif
349349
internal protected Header (ParserOptions options, byte[] field, byte[] value, bool invalid)
350350
{
@@ -1607,7 +1607,7 @@ public override string ToString ()
16071607
/// <returns>The unfolded header value.</returns>
16081608
/// <param name="text">The header text.</param>
16091609
#if NET5_0_OR_GREATER
1610-
[System.Runtime.CompilerServices.SkipLocalsInit]
1610+
[SkipLocalsInit]
16111611
#endif
16121612
public static string Unfold (string text)
16131613
{

MimeKit/Multipart.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
using System.Threading.Tasks;
3333
using System.Collections.Generic;
3434
using System.Security.Cryptography;
35+
using System.Runtime.CompilerServices;
3536

3637
using MimeKit.IO;
3738
using MimeKit.Text;
@@ -150,7 +151,7 @@ void CheckDisposed ()
150151
}
151152

152153
#if NET5_0_OR_GREATER
153-
[System.Runtime.CompilerServices.SkipLocalsInit]
154+
[SkipLocalsInit]
154155
#endif
155156
static string GenerateBoundary ()
156157
{

0 commit comments

Comments
 (0)