-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial serialized member name mapping (#13527)
* Initial implementation of prototype serialization types * Initial serialized member name mapping * Update APIs and READMEs * Fix README and add CHANGELOG * Resolves some PR feedback * Resolve PR feedback * Resolve archboard feedback * Update public API * Updated documentation and versions * Fix CHANGELOG entry
- Loading branch information
Showing
16 changed files
with
755 additions
and
22 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
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
22 changes: 22 additions & 0 deletions
22
sdk/core/Azure.Core/src/Serialization/IMemberNameConverter.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,22 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Reflection; | ||
|
||
namespace Azure.Core.Serialization | ||
{ | ||
/// <summary> | ||
/// Converts type member names to serializable member names. | ||
/// </summary> | ||
public interface IMemberNameConverter | ||
{ | ||
/// <summary> | ||
/// Converts a <see cref="MemberInfo"/> to a serializable member name. | ||
/// </summary> | ||
/// <param name="member">The <see cref="MemberInfo"/> to convert to a serializable member name.</param> | ||
/// <returns>The serializable member name, or null if the member is not defined or ignored by the serializer.</returns> | ||
/// <exception cref="ArgumentNullException"><paramref name="member"/> is null.</exception> | ||
string? ConvertMemberName(MemberInfo member); | ||
} | ||
} |
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
Oops, something went wrong.