Inference/src/TypeSystem/IntersectionMemberType.cs
/// <summary>
/// Adds a new method for overload.
/// </summary>
/// <param name="type">WriteType expression to add.</param>
/// <returns>If the type has been added</returns>
Adds a new method for overload.
Adds a new method for overload .
public bool AddMethod(MethodType type) {
            Predicate<TypeExpression> predicate = delegate(TypeExpression te2) {
                return (bool)te2.AcceptOperation(new EqualsForOverloadOperation(type), null);
            };
            if (typeSet.Find(predicate) == null) {
                this.typeSet.Add(type);
                return true;
            }
            return false;
        }
public bool AddMethod ( MethodType type ) { Predicate < TypeExpression > predicate = delegate ( TypeExpression te2 ) { return ( bool ) te2 . AcceptOperation ( new EqualsForOverloadOperation ( type ) , null ) ; } ; if ( typeSet . Find ( predicate ) == null ) { this . typeSet . Add ( type ) ; return true ; } return false ; }
Adds a new method for overload.
Adds a new method for overload .
If the type has been added
If the type has been added
type
MethodType
WriteType expression to add.
WriteType expression to add .