11 instantiations of FunctionDescription
System.Data.Services (11)
System\Data\Services\Parsing\FunctionDescription.cs (11)
239new FunctionDescription("SubstringOf", new Type[] { typeof(string), typeof(string) }, SubstringOf) 271new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(Type) }, FunctionDescription.UnaryIsOf), 272new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(object), typeof(Type) }, FunctionDescription.BinaryIsOf), 273new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(ResourceType) }, FunctionDescription.UnaryIsOfResourceType), 274new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(object), typeof(ResourceType) }, FunctionDescription.BinaryIsOfResourceType), 291castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { primitiveTypes[i].InstanceType, typeof(Type) }, FunctionDescription.BinaryCast)); 294castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(Type) }, FunctionDescription.UnaryCast)); 295castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(object), typeof(Type) }, FunctionDescription.BinaryCast)); 296castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(ResourceType) }, FunctionDescription.UnaryCastResourceType)); 297castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(object), typeof(ResourceType) }, FunctionDescription.BinaryCastResourceType)); 481FunctionDescription result = new FunctionDescription(member, functionParameterTypes);
53 references to FunctionDescription
System.Data.Services (53)
System\Data\Services\Parsing\FunctionDescription.cs (39)
46/// <summary>Initializes a new <see cref="FunctionDescription"/>.</summary> 54/// <summary>Initializes a new <see cref="FunctionDescription"/>.</summary> 63/// <summary>Initializes a new <see cref="FunctionDescription"/>.</summary> 179internal static string BuildSignatureList(string name, IEnumerable<FunctionDescription> descriptions) 183foreach (FunctionDescription description in descriptions) 216internal static Dictionary<string, FunctionDescription[]> CreateFunctions() 218Dictionary<string, FunctionDescription[]> result = new Dictionary<string, FunctionDescription[]>(StringComparer.Ordinal); 221FunctionDescription[] signatures; 222result.Add("endswith", new FunctionDescription[] { StringInstanceFunction("EndsWith", typeof(string)) }); 223result.Add("indexof", new FunctionDescription[] { StringInstanceFunction("IndexOf", typeof(string)) }); 224result.Add("replace", new FunctionDescription[] { StringInstanceFunction(FunctionNameClrStringReplace, typeof(string), typeof(string)) }); 225result.Add("startswith", new FunctionDescription[] { StringInstanceFunction("StartsWith", typeof(string)) }); 226result.Add("tolower", new FunctionDescription[] { StringInstanceFunction("ToLower", Type.EmptyTypes) }); 227result.Add("toupper", new FunctionDescription[] { StringInstanceFunction("ToUpper", Type.EmptyTypes) }); 228result.Add("trim", new FunctionDescription[] { StringInstanceFunction("Trim", Type.EmptyTypes) }); 230signatures = new FunctionDescription[] 237signatures = new FunctionDescription[] 243signatures = new FunctionDescription[] 249signatures = new FunctionDescription[] 269signatures = new FunctionDescription[] 271new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(Type) }, FunctionDescription.UnaryIsOf), 272new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(object), typeof(Type) }, FunctionDescription.BinaryIsOf), 273new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(ResourceType) }, FunctionDescription.UnaryIsOfResourceType), 274new FunctionDescription(FunctionNameIsOf, new Type[] { typeof(object), typeof(ResourceType) }, FunctionDescription.BinaryIsOfResourceType), 282List<FunctionDescription> castSignatures = new List<FunctionDescription>(primitiveTypes.Length + 4); 291castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { primitiveTypes[i].InstanceType, typeof(Type) }, FunctionDescription.BinaryCast)); 294castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(Type) }, FunctionDescription.UnaryCast)); 295castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(object), typeof(Type) }, FunctionDescription.BinaryCast)); 296castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(ResourceType) }, FunctionDescription.UnaryCastResourceType)); 297castSignatures.Add(new FunctionDescription(FunctionNameCast, new Type[] { typeof(object), typeof(ResourceType) }, FunctionDescription.BinaryCastResourceType)); 443private static FunctionDescription CreateFunctionDescription( 481FunctionDescription result = new FunctionDescription(member, functionParameterTypes); 506private static FunctionDescription StringInstanceFunction(string name, params Type[] parameterTypes) 514private static FunctionDescription[] DateTimeFunctionArray(string name) 516return new FunctionDescription[] 525private static FunctionDescription[] MathFunctionArray(string name) 527return new FunctionDescription[]
System\Data\Services\Parsing\RequestQueryParser.cs (14)
146private static readonly Dictionary<string, FunctionDescription[]> functions = FunctionDescription.CreateFunctions(); 1847FunctionDescription[] functionDescriptions; 1882FunctionDescription function = null; 1885foreach (FunctionDescription functionDescription in functionDescriptions) 1912FunctionDescription.BuildSignatureList(functionToken.Text, functionDescriptions)); 1926FunctionDescription.BuildSignatureList(functionToken.Text, functionDescriptions)); 1946if (function.ConversionFunction == FunctionDescription.BinaryIsOfResourceType || 1947function.ConversionFunction == FunctionDescription.BinaryCastResourceType) 2182private FunctionDescription FindBestFunction(FunctionDescription[] functions, ref Expression[] arguments) 2185List<FunctionDescription> applicableFunctions = new List<FunctionDescription>(functions.Length); 2189foreach (FunctionDescription candidate in functions)