Skip to content

T_CodeJam_Option_1_None

Andrew Koryavchenko edited this page Jul 4, 2017 · 5 revisions

Option(T).None Class

Represents an Option without value.

Inheritance Hierarchy

System.Object
  CodeJam.Option(T)
    CodeJam.Option(T).None
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public sealed class None : Option<T>

VB

Public NotInheritable Class None
	Inherits Option(Of T)

F#

[<SealedAttribute>]
type None =  
    class
        inherit Option<'T>
    end

The Option(T).None generic type exposes the following members.

Properties

 

Name Description
Public property HasValue Gets a value indicating whether the current object has a value. (Inherited from Option(T).)
Public property IsNone Gets a value indicating whether the current object does not have a value. (Inherited from Option(T).)
Public property IsSome Gets a value indicating whether the current object has a value. (Inherited from Option(T).)
Public property Value Gets the value of the current object. (Inherited from Option(T).)
  Back to Top

Methods

 

Name Description
Public method Equals(Object) Indicates whether this instance and a specified object are equal. (Inherited from Option(T).)
Public method Equals(Option(T)) Indicates whether the current object is equal to another object of the same type. (Inherited from Option(T).)
Public method GetHashCode Returns the hash code for this instance. (Overrides Option(T).GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from Option(T).)
  Back to Top

Extension Methods

 

Name Description
Public Extension Method With(T, TResult)(Func(T, TResult)) Overloaded.
Converts option value to another option with selectFunc. (Defined by Option.)
Public Extension Method With(T, TResult)(Func(T, TResult), TResult) Overloaded.
Converts option value to another option with selectFunc. (Defined by Option.)
Public Extension Method With(T, TResult)(Func(T, TResult), Func(TResult)) Overloaded.
Converts option value to another option with selectFunc. (Defined by Option.)
  Back to Top

See Also

Reference

CodeJam Namespace

Clone this wiki locally