You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have a simple interface which I'm parsing from json.
The json file contains optional nested interfaces.
I just noticed that all nested interfaces are always replaced with the Castle Proxy.
Even when the Interface is nullable and even when the default value is set to null.
It even ignores the json value "null" and creates a proxie.
Is there anyway to receive null on a missing nested interface?
Simple example:
public interface ISubSettings {
string SubTest {get;}
}
public interface ISettings
{
string Text {get;}
ISubSettings? Test { get; }
}
Corresponding Json:
{
"Text": null,
"Test": null
}
This resolves in iSettings.Text being null, but iSettings.Test will an instance Castle.Proxy.ISubSettingsProxy instead of null.
The text was updated successfully, but these errors were encountered:
So I have a simple interface which I'm parsing from json.
The json file contains optional nested interfaces.
I just noticed that all nested interfaces are always replaced with the Castle Proxy.
Even when the Interface is nullable and even when the default value is set to null.
It even ignores the json value "null" and creates a proxie.
Is there anyway to receive null on a missing nested interface?
Simple example:
Corresponding Json:
This resolves in iSettings.Text being null, but iSettings.Test will an instance Castle.Proxy.ISubSettingsProxy instead of null.
The text was updated successfully, but these errors were encountered: