- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
T_CodeJam_IOneOf_5
        Andrew Koryavchenko edited this page Jun 17, 2018 
        ·
        2 revisions
      
    Common interface for OneOf(T1, T2, T3, T4, T5) and ValueOneOf(T1, T2, T3, T4, T5).
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public interface IOneOf<T1, T2, T3, T4, T5>VB
Public Interface IOneOf(Of T1, T2, T3, T4, T5)F#
type IOneOf<'T1, 'T2, 'T3, 'T4, 'T5> =  interface end
- T1
- Type of case 1
- T2
- Type of case 2
- T3
- Type of case 3
- T4
- Type of case 4
- T5
- Type of case 5
| Name | Description | |
|---|---|---|
|  | IsCase1 | Returns trueif class contains value of type T1. | 
|  | IsCase2 | Returns trueif class contains value of type T2. | 
|  | IsCase3 | Returns trueif class contains value of type T3. | 
|  | IsCase4 | Returns trueif class contains value of type T4. | 
|  | IsCase5 | Returns trueif class contains value of type T5. | 
| Name | Description | |
|---|---|---|
|  | Do | Calls action for actual type argument. | 
|  | GetValue(TResult) | Calls func for actual type argument and returns calculated value. |