Improved json support
This commit is contained in:
@@ -20,6 +20,7 @@ public class ConfigurationSource<TConfiguration>(IConfigurationFile<TConfigurati
|
|||||||
return new JsonSerializerOptions
|
return new JsonSerializerOptions
|
||||||
{
|
{
|
||||||
WriteIndented = true,
|
WriteIndented = true,
|
||||||
|
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingDefault,
|
||||||
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
|
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
|
||||||
Converters =
|
Converters =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -138,7 +138,6 @@ public partial class Observable<TValue> :
|
|||||||
public partial class Observable<TKey, TValue> :
|
public partial class Observable<TKey, TValue> :
|
||||||
Observable
|
Observable
|
||||||
where TKey : notnull
|
where TKey : notnull
|
||||||
where TValue : notnull
|
|
||||||
{
|
{
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private TKey key;
|
private TKey key;
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ public partial class ObservableCollection<TItem> :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Func<TItem> defaultSelectionFactory;
|
private Func<TItem>? defaultSelectionFactory;
|
||||||
|
|
||||||
public void SetSource(IList<TItem> source,
|
public void SetSource(IList<TItem> source,
|
||||||
Func<TItem>? defaultSelectionFactory)
|
Func<TItem>? defaultSelectionFactory)
|
||||||
@@ -780,7 +780,6 @@ public partial class ObservableCollection<TValue, TViewModel>(IServiceProvider p
|
|||||||
IDisposer disposer,
|
IDisposer disposer,
|
||||||
TValue value) : ObservableCollection<TViewModel>(provider, factory, mediator, publisher, subscriber, disposer)
|
TValue value) : ObservableCollection<TViewModel>(provider, factory, mediator, publisher, subscriber, disposer)
|
||||||
where TViewModel : notnull, IDisposable
|
where TViewModel : notnull, IDisposable
|
||||||
where TValue : notnull
|
|
||||||
{
|
{
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private TValue value = value;
|
private TValue value = value;
|
||||||
@@ -797,7 +796,6 @@ public partial class ObservableCollection<TViewModel, TKey, TValue> :
|
|||||||
ObservableCollection<TViewModel>
|
ObservableCollection<TViewModel>
|
||||||
where TViewModel : notnull, IDisposable
|
where TViewModel : notnull, IDisposable
|
||||||
where TKey : notnull
|
where TKey : notnull
|
||||||
where TValue : notnull
|
|
||||||
{
|
{
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private TKey key;
|
private TKey key;
|
||||||
|
|||||||
Reference in New Issue
Block a user