Click or drag to resize

OptionalT Class



Represents a value type that can be assigned null.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysisOptionalT

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class Optional<T> : ValueType

Type Parameters

T

The OptionalT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyHasValue
Gets a value indicating whether the current object has a value.
Public propertyValue
Gets the value of the current object.
Top
Operators
See Also