Skip to content

T_CodeJam_IOneOf_6

Andrew Koryavchenko edited this page Jun 17, 2018 · 2 revisions

IOneOf(T1, T2, T3, T4, T5, T6) Interface

Common interface for OneOf(T1, T2, T3, T4, T5, T6) and ValueOneOf(T1, T2, T3, T4, T5, T6).

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public interface IOneOf<T1, T2, T3, T4, T5, T6>

VB

Public Interface IOneOf(Of T1, T2, T3, T4, T5, T6)

F#

type IOneOf<'T1, 'T2, 'T3, 'T4, 'T5, 'T6> =  interface end

Type Parameters

 

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
T6
Type of case 6
  The IOneOf(T1, T2, T3, T4, T5, T6) type exposes the following members.

Properties

 

Name Description
Public property IsCase1 Returns true if class contains value of type T1.
Public property IsCase2 Returns true if class contains value of type T2.
Public property IsCase3 Returns true if class contains value of type T3.
Public property IsCase4 Returns true if class contains value of type T4.
Public property IsCase5 Returns true if class contains value of type T5.
Public property IsCase6 Returns true if class contains value of type T6.
  Back to Top

Methods

 

Name Description
Public method Do Calls action for actual type argument.
Public method GetValue(TResult) Calls func for actual type argument and returns calculated value.
  Back to Top

See Also

Reference

CodeJam Namespace

Clone this wiki locally