System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.AlignTypes C# (CSharp) 메소드

AlignTypes() 개인적인 메소드

private AlignTypes ( DbExpression cqt, Type toClrType ) : DbExpression
cqt DbExpression
toClrType Type
리턴 DbExpression
        private DbExpression AlignTypes(DbExpression cqt, Type toClrType)
        {
            Type fromClrType = null; // not used in this code path
            var toType = GetCastTargetType(cqt.ResultType, toClrType, fromClrType, false);
            if (null != toType)
            {
                return cqt.CastTo(toType);
            }
            else
            {
                return cqt;
            }
        }