I get following warning:
Possible 'null' assignment to an entity marked with 'Value cannot be null' attribute
My code:
if (verifier.GetType().GetInterface(typeof(IAsyncVerifier).FullName, true) == null)
{
continue;
}
Warning given on typeof(IAsyncVerifier).FullName
part. How that can be null? How would you fix it? Or maybe there is better way to figure if object implements specific interface?