Skip to content

Commit e00af43

Browse files
committed
More code style fixes
1 parent a9b535a commit e00af43

21 files changed

+92
-36
lines changed

MsgPack.Tests/MSTestSettings.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

NFUnitTest/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using System.Reflection;
35
using System.Runtime.InteropServices;
46

57
// General Information about an assembly is controlled through the following

Shared/MessagePack/Converters/DateTimeConverter.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
using nanoFramework.MessagePack.Stream;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
24
using System;
35
using System.Diagnostics.CodeAnalysis;
6+
using nanoFramework.MessagePack.Stream;
47

58
namespace nanoFramework.MessagePack.Converters
69
{
@@ -11,7 +14,7 @@ private static DateTime Read(IMessagePackReader reader)
1114
var longValue = (long)ConverterContext.GetConverter(typeof(long)).Read(reader)!;
1215
return DateTime.UnixEpoch.AddTicks(longValue);
1316
}
14-
17+
1518

1619
private static void Write(DateTime value, IMessagePackWriter writer)
1720
{

Shared/MessagePack/Converters/MapConverter.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
using nanoFramework.MessagePack.Stream;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
24
using System.Collections;
35
using System.Diagnostics.CodeAnalysis;
6+
using nanoFramework.MessagePack.Stream;
47

58
namespace nanoFramework.MessagePack.Converters
69
{
@@ -20,7 +23,7 @@ private static void Write(IDictionary value, IMessagePackWriter writer)
2023
{
2124
var keyType = element.Key.GetType();
2225
var keyConverter = ConverterContext.GetConverter(keyType);
23-
if(keyConverter == null)
26+
if (keyConverter == null)
2427
{
2528
ConverterContext.SerializeObject(keyType, element.Key, writer);
2629
}

Shared/MessagePack/Converters/NullConverter.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
using nanoFramework.MessagePack.Stream;
2-
using nanoFramework.MessagePack.Utility;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
34
using System.Diagnostics.CodeAnalysis;
5+
using nanoFramework.MessagePack.Stream;
6+
using nanoFramework.MessagePack.Utility;
47

58
namespace nanoFramework.MessagePack.Converters
69
{

Shared/MessagePack/Converters/StringConverter.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
using nanoFramework.MessagePack.Extensions;
2-
using nanoFramework.MessagePack.Stream;
3-
using nanoFramework.MessagePack.Utility;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
44
using System.Diagnostics.CodeAnalysis;
55
using System.Text;
6+
using nanoFramework.MessagePack.Extensions;
7+
using nanoFramework.MessagePack.Stream;
8+
using nanoFramework.MessagePack.Utility;
69

710
namespace nanoFramework.MessagePack.Converters
811
{
@@ -55,7 +58,7 @@ private static string Read(IMessagePackReader reader)
5558

5659
internal static string ReadString(IMessagePackReader reader, uint length)
5760
{
58-
var buffer = (byte[]) reader.ReadBytes(length);
61+
var buffer = (byte[])reader.ReadBytes(length);
5962

6063
return Utf8.GetString(buffer, 0, buffer.Length);
6164
}

Shared/MessagePack/Converters/UlongConverter.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
using nanoFramework.MessagePack.Extensions;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using System.Diagnostics.CodeAnalysis;
5+
using nanoFramework.MessagePack.Extensions;
26
using nanoFramework.MessagePack.Stream;
37
using nanoFramework.MessagePack.Utility;
4-
using System.Diagnostics.CodeAnalysis;
58

69
namespace nanoFramework.MessagePack.Converters
710
{

Shared/MessagePack/Converters/UshortConverter.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
using nanoFramework.MessagePack.Extensions;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using System.Diagnostics.CodeAnalysis;
5+
using nanoFramework.MessagePack.Extensions;
26
using nanoFramework.MessagePack.Stream;
37
using nanoFramework.MessagePack.Utility;
4-
using System.Diagnostics.CodeAnalysis;
58

69
namespace nanoFramework.MessagePack.Converters
710
{

Shared/MessagePack/DataTypes.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace nanoFramework.MessagePack
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
namespace nanoFramework.MessagePack
25
{
36
/// <summary>
47
/// Supporting MessagePack types

Shared/MessagePack/Exceptions/ConverterNotFoundException.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using System;
25

36
namespace nanoFramework.MessagePack.Exceptions
47
{

0 commit comments

Comments
 (0)