Skip to content

Commit 95e9523

Browse files
committed
调整命名空间冲突的解决方式;
1 parent 530f249 commit 95e9523

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Cuture.Extensions.SystemTextJson.Dynamic/JSON.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public static class JSON
2828

2929
#region Public 字段
3030

31-
/// <inheritdoc cref="Dynamic.Undefined"/>
32-
public static readonly dynamic Undefined = Dynamic.Undefined.Instance;
31+
/// <inheritdoc cref="System.Text.Json.Dynamic.Undefined"/>
32+
public static readonly dynamic Undefined = System.Text.Json.Dynamic.Undefined.Instance;
3333

3434
#endregion Public 字段
3535

@@ -76,10 +76,10 @@ static JSON()
7676
}
7777

7878
/// <inheritdoc cref="Undefined.IsUndefined(in object?)"/>
79-
public static bool isUndefined(object? value) => Dynamic.Undefined.IsUndefined(value);
79+
public static bool isUndefined(object? value) => System.Text.Json.Dynamic.Undefined.IsUndefined(value);
8080

8181
/// <inheritdoc cref="Undefined.IsUndefined(in Func{object?})"/>
82-
public static bool isUndefined(in Func<object?> proprytyAccessDelegate) => Dynamic.Undefined.IsUndefined(proprytyAccessDelegate);
82+
public static bool isUndefined(in Func<object?> proprytyAccessDelegate) => System.Text.Json.Dynamic.Undefined.IsUndefined(proprytyAccessDelegate);
8383

8484
/// <summary>
8585
/// 将 <paramref name="json"/> 转换为可动态访问的 JSON 对象

src/Cuture.Extensions.SystemTextJson.Dynamic/Undefined.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ public override bool TryUnaryOperation(UnaryOperationBinder binder, out object?
163163
{
164164
return binder.Operation switch
165165
{
166-
Linq.Expressions.ExpressionType.IsTrue => Result(false, out result),
167-
Linq.Expressions.ExpressionType.IsFalse => Result(true, out result),
168-
Linq.Expressions.ExpressionType.Not => Result(true, out result),
166+
System.Linq.Expressions.ExpressionType.IsTrue => Result(false, out result),
167+
System.Linq.Expressions.ExpressionType.IsFalse => Result(true, out result),
168+
System.Linq.Expressions.ExpressionType.Not => Result(true, out result),
169169
_ => throw GetInvalidOperationException(),
170170
};
171171

0 commit comments

Comments
 (0)