Skip to content

Methods_T_CodeJam_ValueOneOf_2

Andrew Koryavchenko edited this page Jul 4, 2017 · 1 revision

ValueOneOf(T1, T2) Methods

The ValueOneOf(T1, T2) generic type exposes the following members.

Methods

 

Name Description
Public methodStatic member Create(T1) Creates instance of OneOf(T1, T2) for value of type T1.
Public methodStatic member Create(T2) Creates instance of OneOf(T1, T2) for value of type T2.
Public method Do Calls action for actual type argument.
Public method Equals(Object) Indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object).)
Public method Equals(ValueOneOf(T1, T2)) Indicates whether the current object is equal to another object of the same type.
Public method GetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue(TResult) Calls func for actual type argument and returns calculated value.
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
  Back to Top

See Also

Reference

ValueOneOf(T1, T2) Structure
CodeJam Namespace

Clone this wiki locally