-
Notifications
You must be signed in to change notification settings - Fork 36
Methods_T_CodeJam_Option_1
andrewvk edited this page Mar 22, 2016
·
5 revisions
[This is preliminary documentation and is subject to change.]
The Option(T) generic type exposes the following members.
Name | Description | |
---|---|---|
![]() |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) |
![]() |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Name | Description | |
---|---|---|
![]() |
GetValueOrDefault(T) | Returns value of option, or defaultValue if option hasn't it. (Defined by OptionExtensions.) |
![]() |
Map(T, TResult) | Converts option value to another option with selectFunc. (Defined by OptionExtensions.) |
![]() |
Match(T)(Action(Option(T)), Action) | Overloaded. Calls someAction if option has value, and noneAction otherwise. (Defined by OptionExtensions.) |
![]() |
Match(T, TResult)(Func(Option(T), TResult), Func(TResult)) | Overloaded. Calls someFunc if option has value, and noneFunc otherwise. (Defined by OptionExtensions.) |