Skip to content
Permalink
Browse files

Small fixes

  • Loading branch information...
György Kőszeg
György Kőszeg committed Jul 17, 2019
1 parent 5e7e44d commit bda9a2f129fb1401a1f2d5ef8e355b03f17781e4
@@ -629,7 +629,10 @@ public void SerializationTest()
string testRes = manager.GetString(resName);
Assert.IsNotNull(testResRef);
Assert.IsNotNull(testRes);
#if NET35
// TODO .NET 3.5: get/set pointer fields by FieldAccessor
Assert.Inconclusive("Serializing pointers is not supported");
#endif
refManager = refManager.DeepClone();
manager = manager.DeepClone();
Assert.AreEqual(testResRef, refManager.GetString(resName));
@@ -692,7 +692,10 @@ public void SerializationTest()
string testRes = manager.GetString(resName);
Assert.IsNotNull(testResRef);
Assert.IsNotNull(testRes);
#if NET35
// TODO .NET 3.5: get/set pointer fields by FieldAccessor
Assert.Inconclusive("Serializing pointers is not supported");
#endif
refManager = refManager.DeepClone();
manager = manager.DeepClone();
Assert.AreEqual(testResRef, refManager.GetString(resName));
@@ -648,7 +648,10 @@ public void SerializationTest()
string testRes = manager.GetString(resName);
Assert.IsNotNull(testResRef);
Assert.IsNotNull(testRes);
#if NET35
// TODO .NET 3.5: get/set pointer fields by FieldAccessor
Assert.Inconclusive("Serializing pointers is not supported");
#endif
refManager = refManager.DeepClone();
manager = manager.DeepClone();
Assert.AreEqual(testResRef, refManager.GetString(resName));
@@ -20,6 +20,9 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
#if NET35 || NET40
using System.Globalization;
#endif
using System.IO;
using System.Linq;
using System.Reflection;
@@ -19,7 +19,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;

#if NET35
using KGySoft.CoreLibraries;
#endif
using KGySoft.Reflection;

#endregion
@@ -204,9 +204,6 @@ namespace KGySoft.Resources
/// </para>
/// <para>If <see cref="SafeMode"/> property is <see langword="true"/>&#160;the <see cref="O:KGySoft.Resources.ResXResourceSet.GetString">GetString</see> and <see cref="GetMetaString">GetMetaString</see> methods will not throw an
/// <see cref="InvalidOperationException"/> even for non-string values; they return the raw XML value instead.</para>
/// <para>If <see cref="SafeMode"/> property is <see langword="true"/>&#160;the <see cref="O:KGySoft.Resources.ResXResourceSet.GetStream">GetStream</see> methods will not throw an
/// <see cref="InvalidOperationException"/>. For values, which are neither <see cref="MemoryStream"/> nor <see cref="Array">byte[]</see> instances, they return a stream wrapper for the same string value
/// that is returned by the <see cref="O:KGySoft.Resources.ResXResourceSet.GetString">GetString</see>/<see cref="GetMetaString">GetMetaString</see> methods.</para>
/// <h1 class="heading">Example: The SafeMode property</h1>
/// <para>
/// The following example demonstrates the behavior of <see cref="SafeMode"/> property (see the first example as well, where the entries are accessed by the enumerators).

0 comments on commit bda9a2f

Please sign in to comment.
You can’t perform that action at this time.