-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
81 additions
and
91 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
11 changes: 0 additions & 11 deletions
11
src/System.Linq.Dynamic.Core.NewtonsoftJson/Models/DynamicPropertyWithValue.cs
This file was deleted.
Oops, something went wrong.
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
11 changes: 0 additions & 11 deletions
11
src/System.Linq.Dynamic.Core.SystemTextJson/Models/DynamicPropertyWithValue.cs
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
namespace System.Linq.Dynamic.Core | ||
namespace System.Linq.Dynamic.Core; | ||
|
||
/// <summary> | ||
/// DynamicProperty | ||
/// </summary> | ||
public class DynamicProperty | ||
{ | ||
/// <summary> | ||
/// DynamicProperty | ||
/// Initializes a new instance of the <see cref="DynamicProperty"/> class. | ||
/// </summary> | ||
public class DynamicProperty | ||
/// <param name="name">The name from the property.</param> | ||
/// <param name="type">The type from the property.</param> | ||
public DynamicProperty(string name, Type type) | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="DynamicProperty"/> class. | ||
/// </summary> | ||
/// <param name="name">The name from the property.</param> | ||
/// <param name="type">The type from the property.</param> | ||
public DynamicProperty(string name, Type type) | ||
{ | ||
Name = name; | ||
Type = type; | ||
} | ||
Name = name; | ||
Type = type; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the name from the property. | ||
/// </summary> | ||
/// <value> | ||
/// The name from the property. | ||
/// </value> | ||
public string Name { get; } | ||
/// <summary> | ||
/// Gets the name from the property. | ||
/// </summary> | ||
/// <value> | ||
/// The name from the property. | ||
/// </value> | ||
public string Name { get; } | ||
|
||
/// <summary> | ||
/// Gets the type from the property. | ||
/// </summary> | ||
/// <value> | ||
/// The type from the property. | ||
/// </value> | ||
public Type Type { get; } | ||
} | ||
/// <summary> | ||
/// Gets the type from the property. | ||
/// </summary> | ||
/// <value> | ||
/// The type from the property. | ||
/// </value> | ||
public Type Type { get; } | ||
} |
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 @@ | ||
namespace System.Linq.Dynamic.Core; | ||
|
||
/// <summary> | ||
/// DynamicPropertyWithValue | ||
/// </summary> | ||
public class DynamicPropertyWithValue : DynamicProperty | ||
{ | ||
/// <summary> | ||
/// Gets the value from the property. | ||
/// </summary> | ||
public object? Value { get; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="DynamicPropertyWithValue"/> class. | ||
/// </summary> | ||
/// <param name="name">The name from the property.</param> | ||
/// <param name="value">The value from the property.</param> | ||
public DynamicPropertyWithValue(string name, object? value) : base(name, value?.GetType() ?? typeof(object)) | ||
{ | ||
Value = value; | ||
} | ||
} |
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