File: cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelper.cs
Project: ndp\System.Data.csproj (System.Data)
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//----------------------------------------------------------------
 
namespace System.Activities.Presentation.Expressions
{
    public abstract class ExpressionMorphHelper
    {     
        //By default expression cannot infer the type.
        public virtual bool TryInferReturnType(ActivityWithResult expression, EditingContext context, out Type returnType)
        {
            returnType = null;
            return false;
        }        
 
        public abstract bool TryMorphExpression(ActivityWithResult expression, bool isLocationExpression, Type newType, 
            EditingContext context, out ActivityWithResult newExpression);
    }
}