File tree Expand file tree Collapse file tree 4 files changed +3
-9
lines changed
UnitTests/UnitTests.UWP/Helpers Expand file tree Collapse file tree 4 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
5
- using System . Diagnostics . CodeAnalysis ;
6
-
7
5
namespace Microsoft . Toolkit . Helpers
8
6
{
9
7
/// <summary>
@@ -17,7 +15,6 @@ public interface IObjectSerializer
17
15
/// <typeparam name="T">The type of the object to serialize.</typeparam>
18
16
/// <param name="value">The object to serialize.</param>
19
17
/// <returns>The serialized object.</returns>
20
- [ return : NotNullIfNotNull ( "value" ) ]
21
18
string ? Serialize < T > ( T value ) ;
22
19
23
20
/// <summary>
@@ -26,7 +23,6 @@ public interface IObjectSerializer
26
23
/// <typeparam name="T">The type of the deserialized object.</typeparam>
27
24
/// <param name="value">The string to deserialize.</param>
28
25
/// <returns>The deserialized object.</returns>
29
- [ return : NotNullIfNotNull ( "value" ) ]
30
26
T Deserialize < T > ( string value ) ;
31
27
}
32
28
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public interface ISettingsStorageHelper<TKey>
19
19
/// <typeparam name="TValue">Type of object retrieved.</typeparam>
20
20
/// <param name="key">Key of the object.</param>
21
21
/// <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>
23
23
TValue ? Read < TValue > ( TKey key ) ;
24
24
25
25
/// <summary>
Original file line number Diff line number Diff line change 21
21
<DefineConstants >NETSTANDARD2_1_OR_GREATER</DefineConstants >
22
22
</PropertyGroup >
23
23
24
- <!-- .NET Standard 1.4 doesn't have the [Pure] attribute -->
24
+ <!-- .NET Standard 1.4 doesn't have the [Pure] attribute or ValueTuple -->
25
25
<ItemGroup Condition =" '$(TargetFramework)' == 'netstandard1.4'" >
26
26
<PackageReference Include =" System.Diagnostics.Contracts" Version =" 4.3.0" />
27
- </ItemGroup >
28
- <ItemGroup >
29
27
<PackageReference Include =" System.ValueTuple" Version =" 4.5.0" />
30
28
</ItemGroup >
31
29
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public T Deserialize<T>(string value)
26
26
return ( T ) Convert . ChangeType ( value , type ) ;
27
27
}
28
28
29
- return JsonConvert . DeserializeObject < T > ( ( string ) value ) ;
29
+ return JsonConvert . DeserializeObject < T > ( value ) ;
30
30
}
31
31
32
32
public string Serialize < T > ( T value )
You can’t perform that action at this time.
0 commit comments