Skip to content

Commit 5dca228

Browse files
committed
Add namespace using for xmldoc
1 parent 34ef070 commit 5dca228

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

UnitsNet.Serialization.JsonNet/UnitsNetJsonConverter.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
22
// https://github.com/angularsen/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -26,6 +26,7 @@
2626
using Newtonsoft.Json;
2727
using Newtonsoft.Json.Linq;
2828
using UnitsNet.InternalHelpers;
29+
using UnitsNet.Units;
2930

3031
namespace UnitsNet.Serialization.JsonNet
3132
{
@@ -130,7 +131,7 @@ private static object CreateQuantity(Type quantityType, double value, object uni
130131

131132
// Ex: Mass.From(55, MassUnit.Gram)
132133
// TODO: there is a possible loss of precision if base value requires higher precision than double can represent.
133-
// Example: Serializing Information.FromExabytes(100) then deserializing to Information
134+
// Example: Serializing Information.FromExabytes(100) then deserializing to Information
134135
// will likely return a very different result. Not sure how we can handle this?
135136
return notNullableFromMethod.Invoke(null, new[] {quantityValue, unitValue});
136137
}
@@ -196,7 +197,7 @@ public override void WriteJson(JsonWriter writer, object obj, JsonSerializer ser
196197
TypeNameHandling = serializer.TypeNameHandling,
197198
};
198199
JToken t = JToken.FromObject(obj, localSerializer);
199-
200+
200201
t.WriteTo(writer);
201202
return;
202203
}

0 commit comments

Comments
 (0)