Skip to content

Commit 0c609b2

Browse files
committed
remain old name DictionarySerlaizationOptions
1 parent 883db14 commit 0c609b2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/MsgPack/Serialization/SerializationContext.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#endif
2424

2525
using System;
26+
using System.ComponentModel;
2627
#if !UNITY || MSGPACK_UNITY_FULL
2728
#endif // !UNITY || MSGPACK_UNITY_FULL
2829
#if FEATURE_CONCURRENT
@@ -216,6 +217,28 @@ public DictionarySerializationOptions DictionarySerializationOptions
216217
}
217218
}
218219

220+
/// <summary>
221+
/// Gets the dictionary(map) based serialization options.
222+
/// </summary>
223+
/// <value>
224+
/// The <see cref="DictionarySerializationOptions"/> which stores dictionary(map) based serialization options. This value will not be <c>null</c>.
225+
/// </value>
226+
[Obsolete("Use DictionarySerializationOption instead.")]
227+
#if XAMARIN && ( __ANDROID__ || __IOS__ )
228+
[EditorBrowsable(EditorBrowsableState.Never)]
229+
#endif
230+
public DictionarySerializationOptions DictionarySerlaizationOptions
231+
{
232+
get
233+
{
234+
#if DEBUG
235+
Contract.Ensures( Contract.Result<DictionarySerializationOptions>() != null );
236+
#endif // DEBUG
237+
238+
return this._dictionarySerializationOptions;
239+
}
240+
}
241+
219242
private int _serializationMethod;
220243

221244
/// <summary>

0 commit comments

Comments
 (0)