-
Notifications
You must be signed in to change notification settings - Fork 35
Methods_T_CodeJam_IOption_1
Andrew Koryavchenko edited this page Jul 4, 2017
·
3 revisions
The IOption(T) generic type exposes the following members.
Name | Description | |
---|---|---|
Do(T) | Calls someAction if option has value, and noneAction otherwise. (Defined by Option.) | |
GetValueOrDefault(T)(T) | Overloaded. Returns value of option, or defaultValue if option hasn't it. (Defined by Option.) |
|
GetValueOrDefault(T, TResult)(Func(IOption(T), TResult), Func(TResult)) | Overloaded. Calls someSelector if option has value, and noneSelector otherwise. (Defined by Option.) |