I want to know, Need I check variables to null in constructors .Net? For example:
public SftpRepository(ISftpConfig sftpConfig)
{
if (sftpConfig is null)
{
throw new ArgumentNullException(nameof(sftpConfig));
}
_baseUrl = sftpConfig.BaseUrl);
_sftpClient = new SftpClient(
sftpConfig.Host,
sftpConfig.Port,
sftpConfig.Username,
sftpConfig.Password);
}