1 write to expressionMethodMap
System.Data.Services.Client (1)
System\Data\Services\Client\ALinq\TypeSystem.cs (1)
49
expressionMethodMap
= new Dictionary<MethodInfo, string>(ExpectedCount, EqualityComparer<MethodInfo>.Default);
26 references to expressionMethodMap
System.Data.Services.Client (26)
System\Data\Services\Client\ALinq\TypeSystem.cs (26)
50
expressionMethodMap
.Add(typeof(string).GetMethod("Contains", new Type[] { typeof(string) }), @"substringof");
51
expressionMethodMap
.Add(typeof(string).GetMethod("EndsWith", new Type[] { typeof(string) }), @"endswith");
52
expressionMethodMap
.Add(typeof(string).GetMethod("StartsWith", new Type[] { typeof(string) }), @"startswith");
53
expressionMethodMap
.Add(typeof(string).GetMethod("IndexOf", new Type[] { typeof(string) }), @"indexof");
54
expressionMethodMap
.Add(typeof(string).GetMethod("Replace", new Type[] { typeof(string), typeof(string) }), @"replace");
55
expressionMethodMap
.Add(typeof(string).GetMethod("Substring", new Type[] { typeof(int) }), @"substring");
56
expressionMethodMap
.Add(typeof(string).GetMethod("Substring", new Type[] { typeof(int), typeof(int) }), @"substring");
57
expressionMethodMap
.Add(typeof(string).GetMethod("ToLower", Type.EmptyTypes), @"tolower");
58
expressionMethodMap
.Add(typeof(string).GetMethod("ToUpper", Type.EmptyTypes), @"toupper");
59
expressionMethodMap
.Add(typeof(string).GetMethod("Trim", Type.EmptyTypes), @"trim");
60
expressionMethodMap
.Add(typeof(string).GetMethod("Concat", new Type[] { typeof(string), typeof(string) }, null), @"concat");
61
expressionMethodMap
.Add(typeof(string).GetProperty("Length", typeof(int)).GetGetMethod(), @"length");
64
expressionMethodMap
.Add(typeof(DateTime).GetProperty("Day", typeof(int)).GetGetMethod(), @"day");
65
expressionMethodMap
.Add(typeof(DateTime).GetProperty("Hour", typeof(int)).GetGetMethod(), @"hour");
66
expressionMethodMap
.Add(typeof(DateTime).GetProperty("Month", typeof(int)).GetGetMethod(), @"month");
67
expressionMethodMap
.Add(typeof(DateTime).GetProperty("Minute", typeof(int)).GetGetMethod(), @"minute");
68
expressionMethodMap
.Add(typeof(DateTime).GetProperty("Second", typeof(int)).GetGetMethod(), @"second");
69
expressionMethodMap
.Add(typeof(DateTime).GetProperty("Year", typeof(int)).GetGetMethod(), @"year");
72
expressionMethodMap
.Add(typeof(Math).GetMethod("Round", new Type[] { typeof(double) }), @"round");
73
expressionMethodMap
.Add(typeof(Math).GetMethod("Round", new Type[] { typeof(decimal) }), @"round");
74
expressionMethodMap
.Add(typeof(Math).GetMethod("Floor", new Type[] { typeof(double) }), @"floor");
76
expressionMethodMap
.Add(typeof(Math).GetMethod("Floor", new Type[] { typeof(decimal) }), @"floor");
78
expressionMethodMap
.Add(typeof(Math).GetMethod("Ceiling", new Type[] { typeof(double) }), @"ceiling");
80
expressionMethodMap
.Add(typeof(Math).GetMethod("Ceiling", new Type[] { typeof(decimal) }), @"ceiling");
83
Debug.Assert(
expressionMethodMap
.Count == ExpectedCount, "expressionMethodMap.Count == ExpectedCount");
137
return (
expressionMethodMap
.TryGetValue(mi, out methodName) ||