False positive when using Pattern Matching

the pattern matching if(xx) returns false if cast is null, so on success the value cannot be null thus the S3900 is not valid.

Hey there.

I’ve moved your post to the category for reporting false-positives. Please see this thread and update your topic with the relevant information.