System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute sealed class MemberNotNullWhenAttribute : Attribute Specifies that the listed members are not null when the method returns the given value. Documentation Code public MemberNotNullWhenAttribute(bool returnValue, string[] members) Initializes a new instance of the MemberNotNullWhenAttribute class.