Skip to content

Methods_T_CodeJam_OneOf_2

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

OneOf(T1, T2) Methods

The OneOf(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) Determines whether the specified object is equal to the current object. (Overrides Object.Equals(Object).)
Public method Equals(OneOf(T1, T2)) Indicates whether the current object is equal to another object of the same type.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Overrides Object.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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

OneOf(T1, T2) Class
CodeJam Namespace

Clone this wiki locally