IJsonReadOnlyProxy<TValue, TProxy>
Namespace: SnowBank.Data.Json · interface
Implements: IJsonReadOnlyProxy<TValue>, IJsonReadOnlyProxy, IJsonSerializable, IJsonPackable, IEquatable<JsonValue>, IEquatable<ObservableJsonValue>
Wraps a JsonValue into typed read-only proxy that emulates the type TValue
Remarks
This interface is a marker for "wrapper types" that replicate the same set of properties and fields as TValue, using a wrapped JsonValue as source.
Properties
Converter
static IJsonConverter<TValue> Converter { get; }
Returns the IJsonConverter used by proxies of this type
Methods
Create
static TProxy Create(ObservableJsonValue value, IJsonConverter<TValue> converter = null)
Wraps a JSON Value into a read-only proxy for type TValue
static TProxy Create(JsonValue value, IJsonConverter<TValue> converter = null)
Wraps an instance type TValue into read-only proxy
static TProxy Create(IObservableJsonContext ctx, JsonValue value, IJsonConverter<TValue> converter = null)
Wraps an instance type TValue into read-only proxy
static TProxy Create(TValue value, CrystalJsonSettings settings = null, ICrystalJsonTypeResolver resolver = null)
Wraps an instance type TValue into read-only proxy
static TProxy Create(IObservableJsonContext ctx, TValue value, CrystalJsonSettings settings = null, ICrystalJsonTypeResolver resolver = null)
Wraps an instance type TValue into read-only proxy