-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48e47f9
commit 5ada7a4
Showing
19 changed files
with
1,348 additions
and
1,458 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/************************************************************************* | ||
* ModernUO * | ||
* Copyright 2019-2024 - ModernUO Development Team * | ||
* Email: hi@modernuo.com * | ||
* File: SerializedJsonIgnore.cs * | ||
* * | ||
* This program is free software: you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation, either version 3 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
* You should have received a copy of the GNU General Public License * | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. * | ||
*************************************************************************/ | ||
|
||
using System; | ||
using System.Text.Json.Serialization; | ||
using ModernUO.Serialization; | ||
|
||
namespace Server.Json; | ||
|
||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] | ||
public class SerializedJsonIgnoreAttribute : SerializedPropertyAttrAttribute<JsonIgnoreAttribute> | ||
{ | ||
} |
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,26 @@ | ||
/************************************************************************* | ||
* ModernUO * | ||
* Copyright 2019-2024 - ModernUO Development Team * | ||
* Email: hi@modernuo.com * | ||
* File: SerializedJsonPropertyName.cs * | ||
* * | ||
* This program is free software: you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation, either version 3 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
* You should have received a copy of the GNU General Public License * | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. * | ||
*************************************************************************/ | ||
|
||
using System; | ||
using System.Text.Json.Serialization; | ||
using ModernUO.Serialization; | ||
|
||
namespace Server.Json; | ||
|
||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] | ||
public class SerializedJsonPropertyNameAttribute(string name) : SerializedPropertyAttrAttribute<JsonPropertyNameAttribute> | ||
{ | ||
public string Name { get; } = name; | ||
} |
Oops, something went wrong.