Skip to content

Commit 04429ca

Browse files
authored
Remove C# dynamic support from JsonNode (#55430)
1 parent 2c275e8 commit 04429ca

File tree

14 files changed

+56
-834
lines changed

14 files changed

+56
-834
lines changed

src/libraries/System.Text.Json/ref/System.Text.Json.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ public void RemoveAt(int index) { }
547547
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
548548
public override void WriteTo(System.Text.Json.Utf8JsonWriter writer, System.Text.Json.JsonSerializerOptions? options = null) { }
549549
}
550-
public abstract partial class JsonNode : System.Dynamic.IDynamicMetaObjectProvider
550+
public abstract partial class JsonNode
551551
{
552552
internal JsonNode() { }
553553
public System.Text.Json.Nodes.JsonNode? this[int index] { get { throw null; } set { } }
@@ -646,7 +646,6 @@ internal JsonNode() { }
646646
public static System.Text.Json.Nodes.JsonNode? Parse(System.ReadOnlySpan<byte> utf8Json, System.Text.Json.Nodes.JsonNodeOptions? nodeOptions = default(System.Text.Json.Nodes.JsonNodeOptions?), System.Text.Json.JsonDocumentOptions documentOptions = default(System.Text.Json.JsonDocumentOptions)) { throw null; }
647647
public static System.Text.Json.Nodes.JsonNode? Parse(string json, System.Text.Json.Nodes.JsonNodeOptions? nodeOptions = default(System.Text.Json.Nodes.JsonNodeOptions?), System.Text.Json.JsonDocumentOptions documentOptions = default(System.Text.Json.JsonDocumentOptions)) { throw null; }
648648
public static System.Text.Json.Nodes.JsonNode? Parse(ref System.Text.Json.Utf8JsonReader reader, System.Text.Json.Nodes.JsonNodeOptions? nodeOptions = default(System.Text.Json.Nodes.JsonNodeOptions?)) { throw null; }
649-
System.Dynamic.DynamicMetaObject System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression parameter) { throw null; }
650649
public string ToJsonString(System.Text.Json.JsonSerializerOptions? options = null) { throw null; }
651650
public override string ToString() { throw null; }
652651
public abstract void WriteTo(System.Text.Json.Utf8JsonWriter writer, System.Text.Json.JsonSerializerOptions? options = null);

src/libraries/System.Text.Json/ref/System.Text.Json.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@
1313
<Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresUnreferencedCodeAttribute.cs" />
1414
</ItemGroup>
1515
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
16-
<ProjectReference Include="$(LibrariesProjectRoot)System.Linq.Expressions\ref\System.Linq.Expressions.csproj" />
1716
<ProjectReference Include="$(LibrariesProjectRoot)System.Memory\ref\System.Memory.csproj" />
1817
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime\ref\System.Runtime.csproj" />
1918
</ItemGroup>
2019
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
2120
<Reference Include="System.Collections" />
2221
<Reference Include="System.Memory" />
2322
<Reference Include="System.Runtime" />
24-
<Reference Include="System.Linq.Expressions" />
2523
<Reference Include="netstandard" />
2624
</ItemGroup>
2725
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">

src/libraries/System.Text.Json/src/ILLink/ILLink.Suppressions.LibraryBuild.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/libraries/System.Text.Json/src/System.Text.Json.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,17 @@
5959
<Compile Include="System\Text\Json\Nodes\JsonArray.cs" />
6060
<Compile Include="System\Text\Json\Nodes\JsonArray.IList.cs" />
6161
<Compile Include="System\Text\Json\Nodes\JsonNode.cs" />
62-
<Compile Include="System\Text\Json\Nodes\JsonNode.Dynamic.cs" />
6362
<Compile Include="System\Text\Json\Nodes\JsonNode.Operators.cs" />
6463
<Compile Include="System\Text\Json\Nodes\JsonNode.Parse.cs" />
6564
<Compile Include="System\Text\Json\Nodes\JsonNode.To.cs" />
6665
<Compile Include="System\Text\Json\Nodes\JsonNodeOptions.cs" />
6766
<Compile Include="System\Text\Json\Nodes\JsonObject.cs" />
68-
<Compile Include="System\Text\Json\Nodes\JsonObject.Dynamic.cs" />
6967
<Compile Include="System\Text\Json\Nodes\JsonObject.IDictionary.cs" />
7068
<Compile Include="System\Text\Json\Nodes\JsonValue.CreateOverloads.cs" />
7169
<Compile Include="System\Text\Json\Nodes\JsonValue.cs" />
7270
<Compile Include="System\Text\Json\Nodes\JsonValueNotTrimmable.cs" />
7371
<Compile Include="System\Text\Json\Nodes\JsonValueOfT.cs" />
7472
<Compile Include="System\Text\Json\Nodes\JsonValueTrimmable.cs" />
75-
<Compile Include="System\Text\Json\Nodes\MetaDynamic.cs" />
7673
<Compile Include="System\Text\Json\Reader\ConsumeNumberResult.cs" />
7774
<Compile Include="System\Text\Json\Reader\ConsumeTokenResult.cs" />
7875
<Compile Include="System\Text\Json\Reader\JsonReaderException.cs" />
@@ -298,7 +295,6 @@
298295
<Reference Include="System.Collections.Concurrent" />
299296
<Reference Include="System.Diagnostics.Debug" />
300297
<Reference Include="System.Diagnostics.Tools" Condition="'$(TargetFramework)' == 'netcoreapp3.1'" />
301-
<Reference Include="System.Linq.Expressions" />
302298
<Reference Include="System.Memory" />
303299
<Reference Include="System.Numerics.Vectors" />
304300
<Reference Include="System.Reflection.Emit.ILGeneration" />
@@ -315,7 +311,6 @@
315311
</ItemGroup>
316312
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
317313
<PackageReference Include="System.Buffers" Version="$(SystemBuffersVersion)" />
318-
<PackageReference Include="System.Linq.Expressions" Version="$(SystemLinqExpressionsVersion)" />
319314
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
320315
<PackageReference Include="System.Numerics.Vectors" Version="$(SystemNumericsVectorsVersion)" />
321316
<PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.Dynamic.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonObject.Dynamic.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)