mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-22 18:27:42 +01:00
15 lines
427 B
C#
15 lines
427 B
C#
// Copied from https://github.com/Handlebars-Net/Handlebars.Net.Helpers/blob/master/src/Handlebars.Net.Helpers.DynamicLinq
|
|
|
|
using System.Linq.Dynamic.Core;
|
|
|
|
namespace WireMock.Json;
|
|
|
|
internal class DynamicPropertyWithValue : DynamicProperty
|
|
{
|
|
public object? Value { get; }
|
|
|
|
public DynamicPropertyWithValue(string name, object? value) : base(name, value?.GetType() ?? typeof(object))
|
|
{
|
|
Value = value;
|
|
}
|
|
} |