Is there any way to add null-checking in config.Bind?
public class CommonClassSource
{
public int Id {get;set;}
}
public class CommonClassDestination
{
public int Id {get;set;}
}
public class SourceClass
{
public CommonClassSource CommonSource {get;set;}
}
public class DestinationClass
{
public CommonClassDestination CommonDestination {get;set;}
}
For example: here, check if source.CommonSource is null
Is there any way to add null-checking in
config.Bind
?For example: here, check if
source.CommonSource
is null