286 references to Method
System.Activities (10)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
524
MethodInfo method = methodCall.
Method
;
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (1)
985
return Expression.Call(expr1, methodCall.
Method
, arguments);
System\Activities\Expressions\ExpressionServices.cs (4)
82
MethodInfo calledMethod = methodCallExpressionBody.
Method
;
195
Type declaringType = methodCallExpressionBody.
Method
.DeclaringType;
196
MethodInfo calledMethod = methodCallExpressionBody.
Method
;
1236
MethodInfo methodInfo = methodCallExpression.
Method
;
System\Activities\ExpressionUtilities.cs (4)
122
MethodInfo method = callExpression.
Method
;
188
MethodInfo method = callExpression.
Method
;
498
this.getItemMethod = callExpression.
Method
;
1818
MethodInfo targetMethod = methodCall.
Method
;
System.Core (39)
Microsoft\Scripting\Ast\DebugViewWriter.cs (3)
776
} else if (node.
Method
.DeclaringType != null) {
777
Out(node.
Method
.DeclaringType.ToString());
782
Out(node.
Method
.Name);
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
310
public MethodInfo Method { get { return _node.
Method
; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (2)
521
if (Attribute.GetCustomAttribute(node.
Method
, typeof(ExtensionAttribute)) != null) {
530
Out(node.
Method
.Name);
Microsoft\Scripting\Ast\MethodCallExpression.cs (17)
101
return Expression.Call(@object,
Method
, arguments);
168
return Expression.Call(
Method
, args ?? _arguments);
204
return Expression.Call(instance,
Method
, args ?? _arguments);
238
return Expression.Call(
Method
, args[0]);
241
return Expression.Call(
Method
, ReturnObject<Expression>(_arg0));
278
return Expression.Call(
Method
, args[0], args[1]);
280
return Expression.Call(
Method
, ReturnObject<Expression>(_arg0), _arg1);
319
return Expression.Call(
Method
, args[0], args[1], args[2]);
321
return Expression.Call(
Method
, ReturnObject<Expression>(_arg0), _arg1, _arg2);
362
return Expression.Call(
Method
, args[0], args[1], args[2], args[3]);
364
return Expression.Call(
Method
, ReturnObject<Expression>(_arg0), _arg1, _arg2, _arg3);
407
return Expression.Call(
Method
, args[0], args[1], args[2], args[3], args[4]);
410
return Expression.Call(
Method
, ReturnObject<Expression>(_arg0), _arg1, _arg2, _arg3, _arg4);
455
return Expression.Call(instance,
Method
, args[0], args[1]);
457
return Expression.Call(instance,
Method
, ReturnObject<Expression>(_arg0), _arg1);
504
return Expression.Call(instance,
Method
, args[0], args[1], args[2]);
506
return Expression.Call(instance,
Method
, ReturnObject<Expression>(_arg0), _arg1, _arg2);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (2)
169
if (!node.
Method
.IsStatic &&
171
node.
Method
== node.Object.Type.GetMethod("Get", BindingFlags.Public | BindingFlags.Instance)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
307
EmitMethodCall(node.Object, node.
Method
, node, flags);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
422
RequireNoRefArgs(node.
Method
);
System\Linq\Expressions\ExpressionVisitor.cs (1)
167
return Expression.Call(obj, m.
Method
, args);
System\Linq\SequenceQuery.cs (11)
198
Type[] typeArgs = (m.
Method
.IsGenericMethod) ? m.
Method
.GetGenericArguments() : null;
200
if ((m.
Method
.IsStatic || m.
Method
.DeclaringType.IsAssignableFrom(obj.Type))
201
&& ArgsMatch(m.
Method
, args, typeArgs)) {
203
return Expression.Call(obj, m.
Method
, args);
205
else if (m.
Method
.DeclaringType == typeof(Queryable)) {
207
MethodInfo seqMethod = FindEnumerableMethod(m.
Method
.Name, args, typeArgs);
213
BindingFlags flags = BindingFlags.Static | (m.
Method
.IsPublic ? BindingFlags.Public : BindingFlags.NonPublic);
214
MethodInfo method = FindMethod(m.
Method
.DeclaringType, m.
Method
.Name, args, typeArgs, flags);
System.Data.Entity (89)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (3)
401
&& test.
Method
.Name == "IsDBNull")
403
if (ifFalse != null && (ifFalse.Object != null && typeof(DbDataReader).IsAssignableFrom(ifFalse.Object.Type) || IsUserExpressionMethod(ifFalse.
Method
)))
489
var method = m.
Method
;
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (1)
196
return Expression.Call(obj, m.
Method
, args);
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
1531
MethodInfo methodInfo = ((MethodCallExpression)Expression).
Method
;
1552
MethodInfo methodInfo = ((MethodCallExpression)Expression).
Method
;
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (36)
140
if (m.
Method
.IsStatic)
143
if (m.
Method
.Name.StartsWith("op_", StringComparison.Ordinal))
151
switch (m.
Method
.Name)
154
return Expression.Equal(m.Arguments[0], m.Arguments[1], LiftToNull, m.
Method
);
157
return Expression.NotEqual(m.Arguments[0], m.Arguments[1], LiftToNull, m.
Method
);
160
return Expression.GreaterThan(m.Arguments[0], m.Arguments[1], LiftToNull, m.
Method
);
163
return Expression.GreaterThanOrEqual(m.Arguments[0], m.Arguments[1], LiftToNull, m.
Method
);
166
return Expression.LessThan(m.Arguments[0], m.Arguments[1], LiftToNull, m.
Method
);
169
return Expression.LessThanOrEqual(m.Arguments[0], m.Arguments[1], LiftToNull, m.
Method
);
172
return Expression.Multiply(m.Arguments[0], m.Arguments[1], m.
Method
);
175
return Expression.Subtract(m.Arguments[0], m.Arguments[1], m.
Method
);
178
return Expression.Add(m.Arguments[0], m.Arguments[1], m.
Method
);
181
return Expression.Divide(m.Arguments[0], m.Arguments[1], m.
Method
);
184
return Expression.Modulo(m.Arguments[0], m.Arguments[1], m.
Method
);
187
return Expression.And(m.Arguments[0], m.Arguments[1], m.
Method
);
190
return Expression.Or(m.Arguments[0], m.Arguments[1], m.
Method
);
193
return Expression.ExclusiveOr(m.Arguments[0], m.Arguments[1], m.
Method
);
206
switch (m.
Method
.Name)
209
return Expression.Negate(m.Arguments[0], m.
Method
);
212
return Expression.UnaryPlus(m.Arguments[0], m.
Method
);
216
return Expression.Convert(m.Arguments[0], m.Type, m.
Method
);
220
return Expression.Not(m.Arguments[0], m.
Method
);
229
if (m.
Method
.Name == "Equals" && m.Arguments.Count > 1)
234
return Expression.Equal(m.Arguments[0], m.Arguments[1], false, m.
Method
);
238
if (m.
Method
.Name == "CompareString" && m.
Method
.DeclaringType.FullName == "Microsoft.VisualBasic.CompilerServices.Operators")
247
if (m.
Method
.Name == "Compare" && m.Arguments.Count > 1 && m.
Method
.ReturnType == typeof(int))
258
if (m.
Method
.Name == "Equals" && m.Arguments.Count > 0)
261
Type parameterType = m.
Method
.GetParameters()[0].ParameterType;
272
if (m.
Method
.Name == "CompareTo" && m.Arguments.Count == 1 && m.
Method
.ReturnType == typeof(int))
281
if (m.
Method
.Name == "Contains" && m.Arguments.Count == 1) {
282
Type declaringType = m.
Method
.DeclaringType;
324
result = Expression.Call(callExpression.Object, callExpression.
Method
, normalizedArguments);
352
ReflectionUtil.TryIdentifySequenceMethod(callExpression.
Method
, out sequenceMethod))
System\Data\Objects\ELinq\MethodCallTranslator.cs (43)
39
if (ReflectionUtil.TryIdentifySequenceMethod(linq.
Method
, out sequenceMethod) &&
46
if (TryGetCallTranslator(linq.
Method
, out callTranslator))
52
if (ObjectQueryCallTranslator.IsCandidateMethod(linq.
Method
))
55
if (s_objectQueryTranslators.TryGetValue(linq.
Method
.Name, out builderTranslator))
62
EdmFunctionAttribute functionAttribute = linq.
Method
.GetCustomAttributes(typeof(EdmFunctionAttribute), false)
69
switch(linq.
Method
.Name)
73
if (linq.
Method
.GetParameters().Count() == 1 && linq.
Method
.ReturnType.Equals(typeof(bool)))
76
if (linq.
Method
.IsImplementationOfGenericInterfaceMethod(typeof(ICollection<>), out genericArguments))
524
if (TryGetAlternativeMethod(call.
Method
, out suggestedMethodInfo))
526
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedMethodSuggestedAlternative(call.
Method
, suggestedMethodInfo));
529
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedMethod(call.
Method
));
738
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.
Method
, call.
Method
.DeclaringType));
743
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.
Method
, call.
Method
.DeclaringType));
753
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.
Method
, call.
Method
.DeclaringType));
761
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.
Method
, call.
Method
.DeclaringType));
774
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.
Method
, call.
Method
.DeclaringType));
783
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.
Method
, call.
Method
.DeclaringType));
807
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributeParameterNameNotValid(call.
Method
, call.
Method
.DeclaringType, parameterName));
861
if (!call.
Method
.IsStatic)
873
return parent.TranslateIntoCanonicalFunction(call.
Method
.Name, call, linqArguments);
907
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedAsUnicodeAndAsNonUnicode(call.
Method
));
1164
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedStringRemoveCase(call.
Method
, call.
Method
.GetParameters()[1].Name));
1329
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedTrimStartTrimEndCase(call.
Method
));
1424
return parent.TranslateIntoCanonicalFunction(call.
Method
.Name, call, call.Arguments.ToArray());
1458
return parent.TranslateIntoCanonicalFunction(s_methodNameMap[call.
Method
], call, call.Arguments.ToArray());
1504
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedVBDatePartNonConstantInterval(call.
Method
, call.
Method
.GetParameters()[0].Name));
1510
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedVBDatePartInvalidInterval(call.
Method
, call.
Method
.GetParameters()[0].Name, intervalValue));
1609
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.
Method
.Name));
2054
call.
Method
.Name, operand.ResultType.EdmType.Name));
2064
Type clrType = call.
Method
.GetGenericArguments()[0];
2756
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.
Method
.Name));
2877
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.
Method
.Name));
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
398
return ReflectionUtil.TryIdentifySequenceMethod(methodCall.
Method
, out sequenceMethod);
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (3)
45
MethodInfo method = ((MethodCallExpression)lambda.Body).
Method
;
54
MethodInfo method = ((MethodCallExpression)lambda.Body).
Method
;
229
MethodInfo method = (MethodInfo)call.
Method
;
System.Data.Linq (61)
DataServices.cs (3)
475
if (mc.
Method
.DeclaringType != typeof(Queryable)) {
478
switch (mc.
Method
.Name) {
537
if (mex != null && mex.
Method
.Name == "op_Equality" && mex.Arguments.Count == 2) {
DataShape.cs (2)
273
if (isTopLevel && !SubqueryRules.IsSupportedTopLevelMethod(m.
Method
))
274
throw Error.SubqueryDoesNotSupportOperator(m.
Method
.Name);
SqlClient\Query\Funcletizer.cs (3)
133
this.isRemote |= m.
Method
.DeclaringType == typeof(System.Data.Linq.Provider.DataManipulation)
134
|| Attribute.IsDefined(m.
Method
, typeof(FunctionAttribute));
294
return Expression.Call(obj, m.
Method
, args);
SqlClient\Query\QueryConverter.cs (39)
939
if (mce != null && IsSequenceOperatorCall(mce) && mce.
Method
.Name == "Skip" && mce.Arguments.Count == 2) {
1163
SqlTableValuedFunctionCall functionCall = sql.TableValuedFunctionCall(function.ResultRowTypes[0].InheritanceRoot, mce.
Method
.ReturnType, function.MappedName, sqlParams, mce);
1188
Type returnType = mce.
Method
.ReturnType;
1876
Type declType = mc.
Method
.DeclaringType;
1877
if (mc.
Method
.IsStatic) {
1886
if (mc.
Method
.Name == "ChangeType") {
1895
throw Error.MethodFormHasNoSupportConversionToSql(mc.
Method
.Name, mc.
Method
);
1901
else if (typeof(DataContext).IsAssignableFrom(mc.
Method
.DeclaringType)) {
1902
switch (mc.
Method
.Name) {
1905
if (mc.
Method
.IsGenericMethod) {
1906
Type[] typeArgs = mc.
Method
.GetGenericArguments();
1907
if (typeArgs.Length == 1 && mc.
Method
.GetParameters().Length == 0) {
1919
return this.VisitUserQuery((string)GetValue(mc.Arguments[0], mc.
Method
.Name), GetArray(mc.Arguments[1]), mc.Type);
1927
mc.
Method
.DeclaringType != typeof(string)
1928
&& mc.
Method
.Name == "Contains"
1929
&& !mc.
Method
.IsStatic
1930
&& typeof(IList).IsAssignableFrom(mc.
Method
.DeclaringType)
1933
&& TypeSystem.GetElementType(mc.
Method
.DeclaringType).IsAssignableFrom(mc.Arguments[0].Type)
1944
return sql.MethodCall(mc.
Method
, obj, args, dominatingExpression);
1988
MetaFunction function = services.Model.GetFunction(mc.
Method
);
1994
MetaFunction function = services.Model.GetFunction(mc.
Method
);
2006
: this.typeProvider.From(mc.
Method
.ReturnType);
2008
return sql.FunctionCall(mc.
Method
.ReturnType, sqlType, function.MappedName, sqlParams, mc);
2014
Type declType = mc.
Method
.DeclaringType;
2023
if (IsSequenceOperatorCall(mc) && mc.
Method
.Name == methodName) {
2032
Type declType = mc.
Method
.DeclaringType;
2035
switch (mc.
Method
.Name) {
2082
Type ofType = mc.
Method
.GetGenericArguments()[0];
2089
Type type = mc.
Method
.GetGenericArguments()[0];
2310
throw Error.QueryOperatorOverloadNotSupported(mc.
Method
.Name);
2312
throw Error.QueryOperatorNotSupported(mc.
Method
.Name);
2320
return mc.
Method
.IsStatic && mc.
Method
.DeclaringType == typeof(DataManipulation);
2326
switch (mc.
Method
.Name) {
2342
if (mc.
Method
.GetGenericArguments().Length == 1) {
2364
throw Error.QueryOperatorOverloadNotSupported(mc.
Method
.Name);
2366
throw Error.QueryOperatorNotSupported(mc.
Method
.Name);
2368
throw Error.InvalidSequenceOperatorCall(mc.
Method
.Name);
SqlClient\SqlProvider.cs (14)
1061
mce.
Method
.DeclaringType == typeof(Queryable) ||
1062
mce.
Method
.DeclaringType == typeof(Enumerable))
1064
switch (mce.
Method
.Name) {
1068
sequenceMethod = TypeSystem.FindSequenceMethod(mce.
Method
.Name, sequence);
1146
if (mc != null && typeof(DataContext).IsAssignableFrom(mc.
Method
.DeclaringType)) {
1147
return this.services.Model.GetFunction(mc.
Method
);
1348
if (mce.
Method
.DeclaringType == typeof(Queryable) ||
1349
mce.
Method
.DeclaringType == typeof(Enumerable)) {
1350
switch (mce.
Method
.Name) {
1360
else if (mce.
Method
.DeclaringType == typeof(DataContext)) {
1361
if (mce.
Method
.Name == "ExecuteCommand") {
1365
else if (mce.
Method
.DeclaringType.IsSubclassOf(typeof(DataContext))) {
1376
else if (mce.
Method
.DeclaringType == typeof(DataManipulation) && mce.
Method
.ReturnType == typeof(int)) {
System.Data.Services (9)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
333
return Expression.Call(obj, m.
Method
, args);
System\Data\Services\Internal\PropertyAccessVisitor.cs (5)
39
if ((m.
Method
.IsGenericMethod &&
40
m.
Method
.GetGenericMethodDefinition() == DataServiceProviderMethods.GetSequenceValueMethodInfo) ||
41
(m.
Method
== DataServiceProviderMethods.GetValueMethodInfo))
53
else if (m.
Method
== OpenTypeMethods.GetValueOpenPropertyMethodInfo)
74
return Expression.Call(m.Object, m.
Method
, operand, m.Arguments[1]);
System\Data\Services\Parsing\RequestQueryParser.cs (1)
1237
return ((MethodCallExpression)input).
Method
.DeclaringType == typeof(OpenTypeMethods);
System\Data\Services\Providers\BasicExpandProvider.cs (2)
1154
call.
Method
.Name == "Select",
1155
call.
Method
.Name + " == 'Select' -- otherwise last expression must be a .Select projection.");
System.Data.Services.Client (75)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
333
return Expression.Call(obj, m.
Method
, args);
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (1)
109
if (ReflectionUtil.TryIdentifySequenceMethod(mce.
Method
, out sequenceMethod))
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (38)
249
if (visited.
Method
.IsStatic && visited.
Method
.Name.StartsWith("op_", StringComparison.Ordinal))
257
switch (visited.
Method
.Name)
260
return Expression.Equal(visited.Arguments[0], visited.Arguments[1], LiftToNull, visited.
Method
);
263
return Expression.NotEqual(visited.Arguments[0], visited.Arguments[1], LiftToNull, visited.
Method
);
266
return Expression.GreaterThan(visited.Arguments[0], visited.Arguments[1], LiftToNull, visited.
Method
);
269
return Expression.GreaterThanOrEqual(visited.Arguments[0], visited.Arguments[1], LiftToNull, visited.
Method
);
272
return Expression.LessThan(visited.Arguments[0], visited.Arguments[1], LiftToNull, visited.
Method
);
275
return Expression.LessThanOrEqual(visited.Arguments[0], visited.Arguments[1], LiftToNull, visited.
Method
);
278
return Expression.Multiply(visited.Arguments[0], visited.Arguments[1], visited.
Method
);
281
return Expression.Subtract(visited.Arguments[0], visited.Arguments[1], visited.
Method
);
284
return Expression.Add(visited.Arguments[0], visited.Arguments[1], visited.
Method
);
287
return Expression.Divide(visited.Arguments[0], visited.Arguments[1], visited.
Method
);
290
return Expression.Modulo(visited.Arguments[0], visited.Arguments[1], visited.
Method
);
293
return Expression.And(visited.Arguments[0], visited.Arguments[1], visited.
Method
);
296
return Expression.Or(visited.Arguments[0], visited.Arguments[1], visited.
Method
);
299
return Expression.ExclusiveOr(visited.Arguments[0], visited.Arguments[1], visited.
Method
);
312
switch (visited.
Method
.Name)
315
return Expression.Negate(visited.Arguments[0], visited.
Method
);
318
return Expression.UnaryPlus(visited.Arguments[0], visited.
Method
);
322
return Expression.Convert(visited.Arguments[0], visited.Type, visited.
Method
);
326
return Expression.Not(visited.Arguments[0], visited.
Method
);
335
if (visited.
Method
.IsStatic && visited.
Method
.Name == "Equals" && visited.Arguments.Count > 1)
340
return Expression.Equal(visited.Arguments[0], visited.Arguments[1], false, visited.
Method
);
344
if (!visited.
Method
.IsStatic && visited.
Method
.Name == "Equals" && visited.Arguments.Count > 0)
353
if (visited.
Method
.IsStatic && visited.
Method
.Name == "CompareString" && visited.
Method
.DeclaringType.FullName == "Microsoft.VisualBasic.CompilerServices.Operators")
362
if (!visited.
Method
.IsStatic && visited.
Method
.Name == "CompareTo" && visited.Arguments.Count == 1 && visited.
Method
.ReturnType == typeof(int))
371
if (visited.
Method
.IsStatic && visited.
Method
.Name == "Compare" && visited.Arguments.Count > 1 && visited.
Method
.ReturnType == typeof(int))
404
result = Expression.Call(callExpression.Object, callExpression.
Method
, normalizedArguments);
432
ReflectionUtil.TryIdentifySequenceMethod(callExpression.
Method
, out sequenceMethod))
System\Data\Services\Client\ALinq\ExpressionWriter.cs (2)
200
if (TypeSystem.TryGetQueryOptionMethod(m.
Method
, out methodName))
210
Debug.Assert(m.
Method
.Name == "Contains", "m.Method.Name == 'Contains'");
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (4)
122
ReflectionUtil.IsSequenceMethod(call.
Method
, SequenceMethod.ToList) ||
123
ReflectionUtil.IsSequenceMethod(call.
Method
, SequenceMethod.Select);
134
if (ReflectionUtil.IsSequenceMethod(call.
Method
, SequenceMethod.Select))
139
if (insideCall != null && ReflectionUtil.IsSequenceMethod(insideCall.
Method
, SequenceMethod.Select))
System\Data\Services\Client\ALinq\ResourceBinder.cs (18)
110
if (call != null && call.
Method
.Name == "SelectMany")
130
Debug.Assert(mce.
Method
.Name == "Where", "mce.Method.Name == 'Where' -- otherwise this isn't a predicate");
268
AddSequenceQueryOption(input, new FilterQueryOptionExpression(mce.
Method
.ReturnType, newFilter));
527
ResourceExpression resultSelectorSource = CreateResourceSetExpression(mce.
Method
.ReturnType, source, collectorReference, TypeSystem.GetElementType(collectorReference.Type));
617
return RemoveTransparentScope(mce.
Method
.ReturnType, (ResourceSetExpression)input);
624
return CreateNavigationPropertySingletonExpression(mce.
Method
.ReturnType, navSource, boundProjection);
680
rse = CreateResourceSetExpression(mce.
Method
.ReturnType, input, navPropRef, resourceType);
819
return re.CreateCloneWithNewType(mce.
Method
.ReturnType);
1209
if (ReflectionUtil.TryIdentifySequenceMethod(mce.
Method
, out sequenceMethod))
1228
if (ReflectionUtil.TryIdentifySequenceMethod(mce.
Method
, out sequenceMethod))
1272
else if (mce.
Method
.DeclaringType.IsGenericType &&
1273
mce.
Method
.DeclaringType.GetGenericTypeDefinition() == typeof(DataServiceQuery<>))
1275
Type t = typeof(DataServiceQuery<>).MakeGenericType(mce.
Method
.DeclaringType.GetGenericArguments()[0]);
1277
if (mce.
Method
== t.GetMethod("Expand", new Type[] { typeof(string) }))
1281
else if (mce.
Method
== t.GetMethod("AddQueryOption", new Type[] { typeof(string), typeof(object) }))
1285
else if (mce.
Method
== t.GetMethod("IncludeTotalCount"))
1313
while (call != null && ReflectionUtil.IsSequenceMethod(call.
Method
, SequenceMethod.Cast))
1571
return call.
Method
== typeof(object).GetMethod("ReferenceEquals");
System\Data\Services\Client\Error.cs (1)
191
return Error.NotSupported(Strings.ALinq_MethodNotSupported(m.
Method
.Name));
System\Data\Services\Client\MemberAssignmentAnalysis.cs (1)
246
if (ReflectionUtil.IsSequenceMethod(call.
Method
, SequenceMethod.Select))
System\Data\Services\Client\ProjectionPlanCompiler.cs (9)
293
if (m.
Method
.Name == "Select")
297
else if (m.
Method
.Name == "ToList")
303
Debug.Assert(m.
Method
.Name == "ReferenceEquals", "We don't know how to handle this method, ProjectionAnalyzer updated?");
952
Debug.Assert(call.
Method
.Name == "Select", "call.Method.Name == 'Select'");
976
Type returnElementType = call.
Method
.ReturnType.GetGenericArguments()[0];
1014
Debug.Assert(call.
Method
.Name == "ToList", "call.Method.Name == 'ToList'");
1046
if (call.
Method
.Name == "Select")
1065
Type returnElementType = call.
Method
.ReturnType.GetGenericArguments()[0];
1084
Debug.Assert(call.
Method
.Name == "ToList", "call.Method.Name == 'ToList'");
System.Web (3)
Util\QueryableUtility.cs (3)
13
if (call.
Method
.IsStatic && call.
Method
.DeclaringType == typeof(Queryable)) {
14
return call.
Method
.GetGenericMethodDefinition();