Inference/src/TypeSystem/UnionType.cs
/// <summary>
/// Returns true if the union type contains the specified value type.
/// </summary>
/// <param name="type">WriteType expression to search.</param>
/// <returns>True if the union type contains the specified type expression. Otherwise, false.</returns>
Returns true if the union type contains the specified value type.
Returns true if the union type contains the specified value type .
public bool ContainsValueType(TypeExpression type) {
            for (int i = 0; i < this.typeSet.Count; i++) {
                if (this.typeSet[i].IsValueType()) {
                    if (this.typeSet[i] == type)
                        return true;
                }
            }
            return false;
        }
public bool ContainsValueType ( TypeExpression type ) { for ( int i = 0 ; i < this . typeSet . Count ; i ++ ) { if ( this . typeSet [ i ] . IsValueType ( ) ) { if ( this . typeSet [ i ] == type ) return true ; } } return false ; }
Returns true if the union type contains the specified value type.
Returns true if the union type contains the specified value type .
True if the union type contains the specified type expression. Otherwise, false.
True if the union type contains the specified type expression . Otherwise false .
type
TypeExpression
WriteType expression to search.
WriteType expression to search .