Skip to content

Commit b472cc8

Browse files
committed
PR updates
1 parent 5fd25ce commit b472cc8

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

Microsoft.Toolkit/Helpers/ObjectStorage/IObjectSerializer.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using System.Diagnostics.CodeAnalysis;
6-
75
namespace Microsoft.Toolkit.Helpers
86
{
97
/// <summary>
@@ -17,7 +15,6 @@ public interface IObjectSerializer
1715
/// <typeparam name="T">The type of the object to serialize.</typeparam>
1816
/// <param name="value">The object to serialize.</param>
1917
/// <returns>The serialized object.</returns>
20-
[return: NotNullIfNotNull("value")]
2118
string? Serialize<T>(T value);
2219

2320
/// <summary>
@@ -26,7 +23,6 @@ public interface IObjectSerializer
2623
/// <typeparam name="T">The type of the deserialized object.</typeparam>
2724
/// <param name="value">The string to deserialize.</param>
2825
/// <returns>The deserialized object.</returns>
29-
[return: NotNullIfNotNull("value")]
3026
T Deserialize<T>(string value);
3127
}
3228
}

Microsoft.Toolkit/Helpers/ObjectStorage/ISettingsStorageHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public interface ISettingsStorageHelper<TKey>
1919
/// <typeparam name="TValue">Type of object retrieved.</typeparam>
2020
/// <param name="key">Key of the object.</param>
2121
/// <exception cref="KeyNotFoundException">Throws when the specified key is not found.</exception>
22-
/// <returns>The TValue object</returns>
22+
/// <returns>The <see typeparamref="TValue"/> object for <see typeparamref="TKey"/> key.</returns>
2323
TValue? Read<TValue>(TKey key);
2424

2525
/// <summary>

Microsoft.Toolkit/Microsoft.Toolkit.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
<DefineConstants>NETSTANDARD2_1_OR_GREATER</DefineConstants>
2222
</PropertyGroup>
2323

24-
<!-- .NET Standard 1.4 doesn't have the [Pure] attribute -->
24+
<!-- .NET Standard 1.4 doesn't have the [Pure] attribute or ValueTuple -->
2525
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.4'">
2626
<PackageReference Include="System.Diagnostics.Contracts" Version="4.3.0" />
27-
</ItemGroup>
28-
<ItemGroup>
2927
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
3028
</ItemGroup>
3129

UnitTests/UnitTests.UWP/Helpers/JsonObjectSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public T Deserialize<T>(string value)
2626
return (T)Convert.ChangeType(value, type);
2727
}
2828

29-
return JsonConvert.DeserializeObject<T>((string)value);
29+
return JsonConvert.DeserializeObject<T>(value);
3030
}
3131

3232
public string Serialize<T>(T value)

0 commit comments

Comments
 (0)