-
Notifications
You must be signed in to change notification settings - Fork 35
Methods_T_CodeJam_Option_1
Andrew Koryavchenko edited this page Jul 4, 2017
·
5 revisions
The Option(T) generic type exposes the following members.
Name | Description | |
---|---|---|
Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides Object.Equals(Object).) | |
Equals(Option(T)) | Indicates whether the current object is equal to another object of the same type. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Returns the hash code for this instance. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Overrides Object.ToString().) |
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.) |
|
With(T, TResult)(Func(T, TResult)) | Overloaded. Converts option value to another option with selectFunc. (Defined by Option.) |
|
With(T, TResult)(Func(T, TResult), TResult) | Overloaded. Converts option value to another option with selectFunc. (Defined by Option.) |
|
With(T, TResult)(Func(T, TResult), Func(TResult)) | Overloaded. Converts option value to another option with selectFunc. (Defined by Option.) |