MemberNotNullWhenAttribute Class (System.Diagnostics.CodeAnalysis) (original) (raw)
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies that the method or property will ensure that the listed field and property members have non-null values when returning with the specified return value condition.
public ref class MemberNotNullWhenAttribute sealed : Attribute[System.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=true, Inherited=false)]
public sealed class MemberNotNullWhenAttribute : Attribute[<System.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=true, Inherited=false)>]
type MemberNotNullWhenAttribute = class
inherit AttributePublic NotInheritable Class MemberNotNullWhenAttribute
Inherits AttributeInheritance
MemberNotNullWhenAttribute
Attributes
Remarks
For more information, see Nullable static analysis in the C# guide.