Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b2e5f4c
Update serializer (#35735)
nisha-bhatia Apr 21, 2023
87671e8
Update serializer (#35741)
nisha-bhatia Apr 21, 2023
c1497f7
[Azure.Core] add List property tests and update ReadOnly Test (#35904)
nisha-bhatia May 2, 2023
be4d2de
[Azure.Core] Update SerializableOptions.cs (#35947)
nisha-bhatia May 3, 2023
b9a827c
[Azure.Core] add test helper for Models (#35968)
nisha-bhatia May 8, 2023
3653783
[Azure.Core] Update IJsonSerializable with non Try methods (#36164)
nisha-bhatia May 17, 2023
678a804
Add scaffolding for readme (#36342)
m-nash May 18, 2023
2f6b08b
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
m-nash May 19, 2023
ab768c5
Add use cases for explicit casts (#36391)
m-nash May 19, 2023
79bb9f6
[Azure.Core] Update Serializer (#36376)
nisha-bhatia May 19, 2023
7da48fa
Add use cases for stj (#36399)
m-nash May 19, 2023
3ea55f7
[Azure.Core] Add public static deserializer (#36402)
nisha-bhatia May 22, 2023
03d2c71
Add model serializer example (#36418)
m-nash May 22, 2023
6126493
[Azure.Core] Add NewtonSoft Json example (#36453)
nisha-bhatia May 30, 2023
7696902
add generic modeljsonconverter (#36854)
m-nash Jun 6, 2023
bf164e9
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
m-nash Jun 6, 2023
8069f69
[Azure.Core] Add Newton soft BYOM case (#36794)
nisha-bhatia Jun 13, 2023
a905618
merge from main
m-nash Jun 13, 2023
e67e2c0
regen api after merge
m-nash Jun 13, 2023
c18eba6
Demo of what it would look like for public surface (#36857)
m-nash Jun 14, 2023
8ce8618
[Azure.Core] Add XmlSerializer (#37155)
nisha-bhatia Jun 26, 2023
852fd64
add examples for combined interface (#37245)
m-nash Jun 27, 2023
c4838b9
merge main
m-nash Jun 27, 2023
6c173b0
regen api after merge
m-nash Jun 27, 2023
74bd112
Update to v1 api surface (#37276)
m-nash Jun 28, 2023
651c016
wip (#37351)
nisha-bhatia Jul 6, 2023
39cdcec
wip (#37544)
nisha-bhatia Jul 12, 2023
95f8795
[Azure.Core] Update options to use Format string (#37467)
nisha-bhatia Jul 18, 2023
20a3e99
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
m-nash Jul 18, 2023
7794f4c
Update format to have J and W and implement json always on xml models…
m-nash Jul 24, 2023
85c8b0a
Perf checks (#37349)
m-nash Jul 27, 2023
d1df9d3
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
m-nash Jul 27, 2023
1bd5ab1
Hide get sequence until we deal with use-after-free (#37893)
m-nash Jul 28, 2023
5c9570f
Testing public test project failure in ci (#37894)
m-nash Jul 28, 2023
2d830fd
Address api review comments and add more xml docs (#37916)
m-nash Jul 31, 2023
a63c96c
update request content create to take an imodelserializable (#37939)
m-nash Jul 31, 2023
e0612e6
Mnash request conent i model serializable (#37941)
m-nash Jul 31, 2023
e1db74a
update reflection case for modelserializer (#37945)
m-nash Jul 31, 2023
5141eab
Address archboard feedback (#37949)
m-nash Aug 1, 2023
3e8bbed
Remove xml interface (#37967)
m-nash Aug 1, 2023
b758b35
Address feedback from https://github.com/Azure/azure-sdk-for-net/pull…
m-nash Aug 2, 2023
eb49b8e
Add some more testing around SequenceWriter (#37973)
m-nash Aug 3, 2023
f4cb51c
add singletons for known format types (#38007)
m-nash Aug 3, 2023
e99592c
Move SequenceWriter to private class (#38013)
m-nash Aug 4, 2023
ec32248
delete Readme and associated files (#38064)
nisha-bhatia Aug 7, 2023
c19a88d
Add tests for model serialization (#38042)
m-nash Aug 8, 2023
70ebfd4
make cast succeed on null (#38105)
m-nash Aug 9, 2023
980e650
Make ModelSerializer compatible with AOT (#38010)
m-nash Aug 9, 2023
261ef01
Update sdk/core/Azure.Core/src/Serialization/IModelJsonSerializable.cs
m-nash Aug 9, 2023
e3a9292
Update sdk/core/Azure.Core/src/Serialization/IModelSerializable.cs
m-nash Aug 9, 2023
5eed09a
Update sdk/core/Azure.Core/src/Serialization/IModelSerializable.cs
m-nash Aug 9, 2023
9f11424
address exception feedback (#38120)
m-nash Aug 9, 2023
6ef7d29
update helper so its non boxing and add struct test cases (#38125)
m-nash Aug 10, 2023
ec8186c
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-net int…
m-nash Aug 10, 2023
d92d82e
Address some final feedback (#38130)
m-nash Aug 10, 2023
d791153
Minor cleanup (#38137)
m-nash Aug 10, 2023
15ecf9f
change from notsupported to format exception (#38147)
m-nash Aug 10, 2023
6e8a8a5
address feedback (#38150)
m-nash Aug 11, 2023
a96d061
update changelog
m-nash Aug 11, 2023
0401cc8
add mention of IModelSerializeable
m-nash Aug 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/Perf/Azure.Test.Perf/Azure.Test.Perf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PackageReference Include="System.Text.Encodings.Web" />
<PackageReference Include="System.Threading.Channels" />
<PackageReference Include="BenchmarkDotNet" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" />
<Reference Include="System.Net.Http" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
<PackageReference Update="Azure.Storage.Blobs" Version="12.13.1" />
<PackageReference Update="Azure.Storage.Files.DataLake" Version="12.8.0" />
<PackageReference Update="BenchmarkDotNet" Version="0.13.4" />
<PackageReference Update="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.4" />
<PackageReference Update="Castle.Core" Version="5.1.0" />
<PackageReference Update="CommandLineParser" Version="2.8.0" />
<PackageReference Update="FluentAssertions" Version="5.10.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ $(RepoRoot)sdk\core\Azure.Core.Experimental\tests\Azure.Core.Experimental.Tests.
$(RepoRoot)sdk\core\Azure.Core.Experimental\tests\perf\Azure.Core.Experimental.Performance.csproj
$(RepoRoot)sdk\core\Azure.Core.TestFramework\tests\Azure.Core.TestFramework.Tests.csproj
$(RepoRoot)sdk\core\Azure.Core\tests\Azure.Core.Tests.csproj
$(RepoRoot)sdk\core\Azure.Core\tests\public\Azure.Core.Tests.Public.csproj
$(RepoRoot)sdk\core\Microsoft.Azure.Core.NewtonsoftJson\tests\Microsoft.Azure.Core.NewtonsoftJson.Tests.csproj
$(RepoRoot)sdk\core\Microsoft.Azure.Core.Spatial.NewtonsoftJson\tests\Microsoft.Azure.Core.Spatial.NewtonsoftJson.Tests.csproj
$(RepoRoot)sdk\core\Microsoft.Azure.Core.Spatial\tests\Microsoft.Azure.Core.Spatial.Tests.csproj
Expand Down
6 changes: 6 additions & 0 deletions sdk/core/Azure.Core/Azure.Core.sln
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.Expressions.Data
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.Tests.Public", "tests\public\Azure.Core.Tests.Public.csproj", "{BFBF8EF7-61D8-40E7-9E98-468A0427761E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Core.Tests.Common", "tests\common\Azure.Core.Tests.Common.csproj", "{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -131,6 +133,10 @@ Global
{BFBF8EF7-61D8-40E7-9E98-468A0427761E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BFBF8EF7-61D8-40E7-9E98-468A0427761E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BFBF8EF7-61D8-40E7-9E98-468A0427761E}.Release|Any CPU.Build.0 = Release|Any CPU
{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
2 changes: 2 additions & 0 deletions sdk/core/Azure.Core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Features Added

-Added `ModelSerializer` which provides a public API to serialize and deserialize models. The new API works with any classes that implement `IModelSerializeable`.

### Breaking Changes

### Bugs Fixed
Expand Down
66 changes: 66 additions & 0 deletions sdk/core/Azure.Core/api/Azure.Core.net461.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ public abstract partial class RequestContent : System.IDisposable
{
protected RequestContent() { }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.DynamicData content) { throw null; }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.IModelJsonSerializable<object> model, Azure.Core.Serialization.ModelSerializerOptions? options = null) { throw null; }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.IModelSerializable<object> model, Azure.Core.Serialization.ModelSerializerOptions? options = null) { throw null; }
public static Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
public static Azure.Core.RequestContent Create(System.Buffers.ReadOnlySequence<byte> bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes) { throw null; }
Expand Down Expand Up @@ -1075,6 +1077,12 @@ public ServerCertificateCustomValidationArgs(System.Security.Cryptography.X509Ce
}
namespace Azure.Core.Serialization
{
[System.AttributeUsageAttribute(System.AttributeTargets.Class)]
public sealed partial class AbstractHierarchyDeserializerAttribute : System.Attribute
{
public AbstractHierarchyDeserializerAttribute(System.Type typeToActivate) { }
public System.Type TypeToActivate { get { throw null; } }
}
[System.Diagnostics.DebuggerDisplayAttribute("{DebuggerDisplay,nq}")]
public sealed partial class DynamicData : System.Dynamic.IDynamicMetaObjectProvider, System.IDisposable
{
Expand Down Expand Up @@ -1109,6 +1117,16 @@ public partial interface IMemberNameConverter
{
string? ConvertMemberName(System.Reflection.MemberInfo member);
}
public partial interface IModelJsonSerializable<out T> : Azure.Core.Serialization.IModelSerializable<T>
{
T Deserialize(ref System.Text.Json.Utf8JsonReader reader, Azure.Core.Serialization.ModelSerializerOptions options);
void Serialize(System.Text.Json.Utf8JsonWriter writer, Azure.Core.Serialization.ModelSerializerOptions options);
}
public partial interface IModelSerializable<out T>
{
T Deserialize(System.BinaryData data, Azure.Core.Serialization.ModelSerializerOptions options);
System.BinaryData Serialize(Azure.Core.Serialization.ModelSerializerOptions options);
}
public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter
{
public JsonObjectSerializer() { }
Expand All @@ -1127,6 +1145,54 @@ public enum JsonPropertyNames
UseExact = 0,
CamelCase = 1,
}
public partial class ModelJsonConverter : System.Text.Json.Serialization.JsonConverter<Azure.Core.Serialization.IModelJsonSerializable<object>>
{
public ModelJsonConverter() { }
public ModelJsonConverter(Azure.Core.Serialization.ModelSerializerFormat format) { }
public ModelJsonConverter(Azure.Core.Serialization.ModelSerializerOptions options) { }
public Azure.Core.Serialization.ModelSerializerOptions ModelSerializerOptions { get { throw null; } }
public override bool CanConvert(System.Type typeToConvert) { throw null; }
public override Azure.Core.Serialization.IModelJsonSerializable<object> Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; }
public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.Serialization.IModelJsonSerializable<object> value, System.Text.Json.JsonSerializerOptions options) { }
}
public static partial class ModelSerializer
{
public static object Deserialize(System.BinaryData data, System.Type returnType, Azure.Core.Serialization.ModelSerializerFormat format) { throw null; }
public static object Deserialize(System.BinaryData data, System.Type returnType, Azure.Core.Serialization.ModelSerializerOptions? options = null) { throw null; }
public static T Deserialize<T>(System.BinaryData data, Azure.Core.Serialization.ModelSerializerFormat format) where T : Azure.Core.Serialization.IModelSerializable<T> { throw null; }
public static T Deserialize<T>(System.BinaryData data, Azure.Core.Serialization.ModelSerializerOptions? options = null) where T : Azure.Core.Serialization.IModelSerializable<T> { throw null; }
public static System.BinaryData Serialize(object model, Azure.Core.Serialization.ModelSerializerFormat format) { throw null; }
public static System.BinaryData Serialize(object model, Azure.Core.Serialization.ModelSerializerOptions? options = null) { throw null; }
public static System.BinaryData SerializeCore(Azure.Core.Serialization.IModelJsonSerializable<object> model, Azure.Core.Serialization.ModelSerializerOptions options) { throw null; }
public static System.BinaryData Serialize<T>(T model, Azure.Core.Serialization.ModelSerializerFormat format) where T : Azure.Core.Serialization.IModelSerializable<T> { throw null; }
public static System.BinaryData Serialize<T>(T model, Azure.Core.Serialization.ModelSerializerOptions? options = null) where T : Azure.Core.Serialization.IModelSerializable<T> { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct ModelSerializerFormat : System.IEquatable<Azure.Core.Serialization.ModelSerializerFormat>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public static readonly Azure.Core.Serialization.ModelSerializerFormat Json;
public static readonly Azure.Core.Serialization.ModelSerializerFormat Wire;
public ModelSerializerFormat(string value) { throw null; }
public bool Equals(Azure.Core.Serialization.ModelSerializerFormat other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static bool operator ==(Azure.Core.Serialization.ModelSerializerFormat left, Azure.Core.Serialization.ModelSerializerFormat right) { throw null; }
public static implicit operator Azure.Core.Serialization.ModelSerializerFormat (string value) { throw null; }
public static bool operator !=(Azure.Core.Serialization.ModelSerializerFormat left, Azure.Core.Serialization.ModelSerializerFormat right) { throw null; }
public override string ToString() { throw null; }
}
public partial class ModelSerializerOptions
{
public static readonly Azure.Core.Serialization.ModelSerializerOptions DefaultWireOptions;
public ModelSerializerOptions() { }
public ModelSerializerOptions(Azure.Core.Serialization.ModelSerializerFormat format) { }
public Azure.Core.Serialization.ModelSerializerFormat Format { get { throw null; } }
public System.Func<System.Type, Azure.Core.Serialization.ObjectSerializer>? GenericTypeSerializerCreator { get { throw null; } set { } }
}
public abstract partial class ObjectSerializer
{
protected ObjectSerializer() { }
Expand Down
67 changes: 67 additions & 0 deletions sdk/core/Azure.Core/api/Azure.Core.net5.0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ public abstract partial class RequestContent : System.IDisposable
{
protected RequestContent() { }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.DynamicData content) { throw null; }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.IModelJsonSerializable<object> model, Azure.Core.Serialization.ModelSerializerOptions? options = null) { throw null; }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.IModelSerializable<object> model, Azure.Core.Serialization.ModelSerializerOptions? options = null) { throw null; }
public static Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
public static Azure.Core.RequestContent Create(System.Buffers.ReadOnlySequence<byte> bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes) { throw null; }
Expand Down Expand Up @@ -1075,6 +1077,13 @@ public ServerCertificateCustomValidationArgs(System.Security.Cryptography.X509Ce
}
namespace Azure.Core.Serialization
{
[System.AttributeUsageAttribute(System.AttributeTargets.Class)]
public sealed partial class AbstractHierarchyDeserializerAttribute : System.Attribute
{
public AbstractHierarchyDeserializerAttribute([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] System.Type typeToActivate) { }
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)]
public System.Type TypeToActivate { get { throw null; } }
}
[System.Diagnostics.DebuggerDisplayAttribute("{DebuggerDisplay,nq}")]
public sealed partial class DynamicData : System.Dynamic.IDynamicMetaObjectProvider, System.IDisposable
{
Expand Down Expand Up @@ -1109,6 +1118,16 @@ public partial interface IMemberNameConverter
{
string? ConvertMemberName(System.Reflection.MemberInfo member);
}
public partial interface IModelJsonSerializable<out T> : Azure.Core.Serialization.IModelSerializable<T>
{
T Deserialize(ref System.Text.Json.Utf8JsonReader reader, Azure.Core.Serialization.ModelSerializerOptions options);
void Serialize(System.Text.Json.Utf8JsonWriter writer, Azure.Core.Serialization.ModelSerializerOptions options);
}
public partial interface IModelSerializable<out T>
{
T Deserialize(System.BinaryData data, Azure.Core.Serialization.ModelSerializerOptions options);
System.BinaryData Serialize(Azure.Core.Serialization.ModelSerializerOptions options);
}
public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter
{
public JsonObjectSerializer() { }
Expand All @@ -1127,6 +1146,54 @@ public enum JsonPropertyNames
UseExact = 0,
CamelCase = 1,
}
public partial class ModelJsonConverter : System.Text.Json.Serialization.JsonConverter<Azure.Core.Serialization.IModelJsonSerializable<object>>
{
public ModelJsonConverter() { }
public ModelJsonConverter(Azure.Core.Serialization.ModelSerializerFormat format) { }
public ModelJsonConverter(Azure.Core.Serialization.ModelSerializerOptions options) { }
public Azure.Core.Serialization.ModelSerializerOptions ModelSerializerOptions { get { throw null; } }
public override bool CanConvert(System.Type typeToConvert) { throw null; }
public override Azure.Core.Serialization.IModelJsonSerializable<object> Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; }
public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.Serialization.IModelJsonSerializable<object> value, System.Text.Json.JsonSerializerOptions options) { }
}
public static partial class ModelSerializer
{
public static object Deserialize(System.BinaryData data, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] System.Type returnType, Azure.Core.Serialization.ModelSerializerFormat format) { throw null; }
public static object Deserialize(System.BinaryData data, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] System.Type returnType, Azure.Core.Serialization.ModelSerializerOptions? options = null) { throw null; }
public static T Deserialize<T>(System.BinaryData data, Azure.Core.Serialization.ModelSerializerFormat format) where T : Azure.Core.Serialization.IModelSerializable<T> { throw null; }
public static T Deserialize<T>(System.BinaryData data, Azure.Core.Serialization.ModelSerializerOptions? options = null) where T : Azure.Core.Serialization.IModelSerializable<T> { throw null; }
public static System.BinaryData Serialize(object model, Azure.Core.Serialization.ModelSerializerFormat format) { throw null; }
public static System.BinaryData Serialize(object model, Azure.Core.Serialization.ModelSerializerOptions? options = null) { throw null; }
public static System.BinaryData SerializeCore(Azure.Core.Serialization.IModelJsonSerializable<object> model, Azure.Core.Serialization.ModelSerializerOptions options) { throw null; }
public static System.BinaryData Serialize<T>(T model, Azure.Core.Serialization.ModelSerializerFormat format) where T : Azure.Core.Serialization.IModelSerializable<T> { throw null; }
public static System.BinaryData Serialize<T>(T model, Azure.Core.Serialization.ModelSerializerOptions? options = null) where T : Azure.Core.Serialization.IModelSerializable<T> { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct ModelSerializerFormat : System.IEquatable<Azure.Core.Serialization.ModelSerializerFormat>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public static readonly Azure.Core.Serialization.ModelSerializerFormat Json;
public static readonly Azure.Core.Serialization.ModelSerializerFormat Wire;
public ModelSerializerFormat(string value) { throw null; }
public bool Equals(Azure.Core.Serialization.ModelSerializerFormat other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals([System.Diagnostics.CodeAnalysis.AllowNullAttribute] object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static bool operator ==(Azure.Core.Serialization.ModelSerializerFormat left, Azure.Core.Serialization.ModelSerializerFormat right) { throw null; }
public static implicit operator Azure.Core.Serialization.ModelSerializerFormat (string value) { throw null; }
public static bool operator !=(Azure.Core.Serialization.ModelSerializerFormat left, Azure.Core.Serialization.ModelSerializerFormat right) { throw null; }
public override string ToString() { throw null; }
}
public partial class ModelSerializerOptions
{
public static readonly Azure.Core.Serialization.ModelSerializerOptions DefaultWireOptions;
public ModelSerializerOptions() { }
public ModelSerializerOptions(Azure.Core.Serialization.ModelSerializerFormat format) { }
public Azure.Core.Serialization.ModelSerializerFormat Format { get { throw null; } }
public System.Func<System.Type, Azure.Core.Serialization.ObjectSerializer>? GenericTypeSerializerCreator { get { throw null; } set { } }
}
public abstract partial class ObjectSerializer
{
protected ObjectSerializer() { }
Expand Down
Loading