Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / CqlErrorHelper.cs / 2 / CqlErrorHelper.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backup [....]
//---------------------------------------------------------------------
namespace System.Data.Common.EntitySql
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Data.Metadata.Edm;
using System.Data.Common.CommandTrees;
///
/// Error reporting Helper
///
internal static class CqlErrorHelper
{
///
/// Handles function resolution error
///
///
///
///
internal static void ReportFunctionOverloadError( MethodExpr functionExpr, EdmFunction functionType, List argTypes )
{
string strDelim = "";
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append(functionExpr.MethodPrefixExpr.FullName).Append("(");
for (int i = 0 ; i < argTypes.Count ; i++)
{
sb.Append(strDelim);
sb.Append(argTypes[i].EdmType.NamespaceName);
sb.Append(".");
sb.Append(argTypes[i].EdmType.Name);
strDelim = ", ";
}
sb.Append(")");
Func