-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_IOneOf_2
Andrew Koryavchenko edited this page Jul 4, 2017
·
2 revisions
Common interface for OneOf(T1, T2) and ValueOneOf(T1, T2).
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
public interface IOneOf<T1, T2>
VB
Public Interface IOneOf(Of T1, T2)
F#
type IOneOf<'T1, 'T2> = interface end
- T1
- Type of case 1
- T2
- Type of case 2
Name | Description | |
---|---|---|
![]() |
IsCase1 |
Returns true if class contains value of type T1. |
![]() |
IsCase2 |
Returns true if class contains value of type T2. |
Name | Description | |
---|---|---|
![]() |
Do | Calls action for actual type argument. |
![]() |
GetValue(TResult) | Calls func for actual type argument and returns calculated value. |