System.Diagnostics.CodeAnalysis.NotNullWhenAttribute sealed class NotNullWhenAttribute : Attribute Specifies that when a method returns ReturnValue, the parameter will not be null even if the corresponding type allows it. Documentation Code namespace System.Diagnostics.CodeAnalysis { }