Skip to content

Commit 1286a9d

Browse files
authored
Add DynamicJson type (Azure#12843)
1 parent fa0e534 commit 1286a9d

15 files changed

+1358
-1
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,7 @@ dist/
160160
node_modules/
161161

162162
# MSBuild binary log files
163-
msbuild.binlog
163+
msbuild.binlog
164+
165+
# BenchmarkDotNet
166+
BenchmarkDotNet.Artifacts

eng/Packages.Data.props

+2
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@
147147
<!-- Test only packages -->
148148
<ItemGroup Condition="('$(IsTestProject)' == 'true') OR ('$(IsTestSupportProject)' == 'true')">
149149

150+
<PackageReference Update="Microsoft.CSharp" Version="4.6" />
151+
150152
<!-- Extension packages -->
151153
<PackageReference Update="Microsoft.AspNetCore.Server.Kestrel" Version="2.2.0" />
152154
<PackageReference Update="Microsoft.AspNetCore.Server.WebListener" Version="1.0.2" />

sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs

+56
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,62 @@ public readonly partial struct BinaryData
2424
public override string ToString() { throw null; }
2525
public string ToString(System.Text.Encoding encoding) { throw null; }
2626
}
27+
public partial class DynamicJson : System.Dynamic.IDynamicMetaObjectProvider
28+
{
29+
public DynamicJson(string json) { }
30+
public DynamicJson(System.Text.Json.JsonElement element) { }
31+
public Azure.Core.DynamicJson this[int arrayIndex] { get { throw null; } set { } }
32+
public Azure.Core.DynamicJson this[string propertyName] { get { throw null; } set { } }
33+
public static Azure.Core.DynamicJson Array() { throw null; }
34+
public static Azure.Core.DynamicJson Array(params Azure.Core.DynamicJson[] values) { throw null; }
35+
public static Azure.Core.DynamicJson Array(System.Collections.Generic.IEnumerable<Azure.Core.DynamicJson> values) { throw null; }
36+
public static Azure.Core.DynamicJson Create(System.Text.Json.JsonElement element) { throw null; }
37+
public System.Threading.Tasks.Task<T> DeserializeAsync<T>(Azure.Core.ObjectSerializer serializer) { throw null; }
38+
public T Deserialize<T>(Azure.Core.ObjectSerializer serializer) { throw null; }
39+
public T Deserialize<T>(System.Text.Json.JsonSerializerOptions? options = null) { throw null; }
40+
public System.Collections.Generic.IEnumerable<Azure.Core.DynamicJson> EnumerateArray() { throw null; }
41+
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, Azure.Core.DynamicJson>> EnumerateObject() { throw null; }
42+
public int GetArrayLength() { throw null; }
43+
public bool GetBoolean() { throw null; }
44+
public double GetDouble() { throw null; }
45+
public float GetFloat() { throw null; }
46+
public int GetIn32() { throw null; }
47+
public long GetLong() { throw null; }
48+
public Azure.Core.DynamicJson GetProperty(string name) { throw null; }
49+
public string? GetString() { throw null; }
50+
public static Azure.Core.DynamicJson Object() { throw null; }
51+
public static Azure.Core.DynamicJson Object(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, Azure.Core.DynamicJson>> values) { throw null; }
52+
public static explicit operator bool (Azure.Core.DynamicJson json) { throw null; }
53+
public static explicit operator double (Azure.Core.DynamicJson json) { throw null; }
54+
public static explicit operator int (Azure.Core.DynamicJson json) { throw null; }
55+
public static explicit operator long (Azure.Core.DynamicJson json) { throw null; }
56+
public static explicit operator bool? (Azure.Core.DynamicJson json) { throw null; }
57+
public static explicit operator double? (Azure.Core.DynamicJson json) { throw null; }
58+
public static explicit operator int? (Azure.Core.DynamicJson json) { throw null; }
59+
public static explicit operator long? (Azure.Core.DynamicJson json) { throw null; }
60+
public static explicit operator float? (Azure.Core.DynamicJson json) { throw null; }
61+
public static explicit operator float (Azure.Core.DynamicJson json) { throw null; }
62+
public static explicit operator string (Azure.Core.DynamicJson json) { throw null; }
63+
public static implicit operator Azure.Core.DynamicJson (bool value) { throw null; }
64+
public static implicit operator Azure.Core.DynamicJson (double value) { throw null; }
65+
public static implicit operator Azure.Core.DynamicJson (int value) { throw null; }
66+
public static implicit operator Azure.Core.DynamicJson (long value) { throw null; }
67+
public static implicit operator Azure.Core.DynamicJson (bool? value) { throw null; }
68+
public static implicit operator Azure.Core.DynamicJson (double? value) { throw null; }
69+
public static implicit operator Azure.Core.DynamicJson (int? value) { throw null; }
70+
public static implicit operator Azure.Core.DynamicJson (long? value) { throw null; }
71+
public static implicit operator Azure.Core.DynamicJson (float? value) { throw null; }
72+
public static implicit operator Azure.Core.DynamicJson (float value) { throw null; }
73+
public static implicit operator Azure.Core.DynamicJson (string? value) { throw null; }
74+
public static Azure.Core.DynamicJson Parse(string json) { throw null; }
75+
public static System.Threading.Tasks.Task<Azure.Core.DynamicJson> SerializeAsync<T>(T value, Azure.Core.ObjectSerializer serializer) { throw null; }
76+
public static Azure.Core.DynamicJson Serialize<T>(T value, Azure.Core.ObjectSerializer serializer) { throw null; }
77+
public static Azure.Core.DynamicJson Serialize<T>(T value, System.Text.Json.JsonSerializerOptions? options = null) { throw null; }
78+
System.Dynamic.DynamicMetaObject System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression parameter) { throw null; }
79+
public System.Text.Json.JsonElement ToJsonElement() { throw null; }
80+
public override string ToString() { throw null; }
81+
public void WriteTo(System.Text.Json.Utf8JsonWriter writer) { }
82+
}
2783
public partial class JsonObjectSerializer : Azure.Core.ObjectSerializer
2884
{
2985
public JsonObjectSerializer() { }

0 commit comments

Comments
 (0)