-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ReadOnlyAttribute support, merged simple-json/pull/75 the fix f…
…or large integers. [release]
- Loading branch information
1 parent
b5f1c25
commit 01ec439
Showing
5 changed files
with
179 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
Dapplo.HttpExtensions.Tests/TestEntities/SerializeTestEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Dapplo - building blocks for desktop applications | ||
// Copyright (C) 2016 Dapplo | ||
// | ||
// For more information see: http://dapplo.net/ | ||
// Dapplo repositories are hosted on GitHub: https://github.com/dapplo | ||
// | ||
// This file is part of Dapplo.HttpExtensions | ||
// | ||
// Dapplo.HttpExtensions is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Lesser General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Dapplo.HttpExtensions is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have a copy of the GNU Lesser General Public License | ||
// along with Dapplo.HttpExtensions. If not, see <http://www.gnu.org/licenses/lgpl.txt>. | ||
|
||
#region using | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Runtime.Serialization; | ||
|
||
#endregion | ||
|
||
namespace Dapplo.HttpExtensions.Tests.TestEntities | ||
{ | ||
/// <summary> | ||
/// Container for the release information from GitHub | ||
/// </summary> | ||
[DataContract] | ||
public class SerializeTestEntity | ||
{ | ||
[DataMember(Name = "valueNormal")] | ||
public string ValueNormal { get; set; } | ||
|
||
[DataMember(Name = "valueEmitDefaultFalse", EmitDefaultValue = false)] | ||
public string ValueEmitDefaultFalse { get; set; } | ||
|
||
[DataMember(Name = "valueReadOnly"), ReadOnly(true)] | ||
public string ValueReadOnly { get; set; } | ||
|
||
[DataMember(Name = "valueNotReadOnly"), ReadOnly(false)] | ||
public string ValueNotReadOnly { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters