46 references to OpenTypeMethods
System.Data.Services (46)
System\Data\Services\Internal\PropertyAccessVisitor.cs (1)
53
else if (m.Method ==
OpenTypeMethods
.GetValueOpenPropertyMethodInfo)
System\Data\Services\OpenTypes\OpenTypeMethods.cs (20)
29
internal static readonly MethodInfo AddMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Add", BindingFlags.Static | BindingFlags.Public);
32
internal static readonly MethodInfo AndAlsoMethodInfo = typeof(
OpenTypeMethods
).GetMethod("AndAlso", BindingFlags.Static | BindingFlags.Public);
35
internal static readonly MethodInfo ConvertMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Convert", BindingFlags.Static | BindingFlags.Public);
38
internal static readonly MethodInfo DivideMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Divide", BindingFlags.Static | BindingFlags.Public);
41
internal static readonly MethodInfo EqualMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Equal", BindingFlags.Static | BindingFlags.Public);
44
internal static readonly MethodInfo GreaterThanMethodInfo = typeof(
OpenTypeMethods
).GetMethod("GreaterThan", BindingFlags.Static | BindingFlags.Public);
47
internal static readonly MethodInfo GreaterThanOrEqualMethodInfo = typeof(
OpenTypeMethods
).GetMethod("GreaterThanOrEqual", BindingFlags.Static | BindingFlags.Public);
50
internal static readonly MethodInfo LessThanMethodInfo = typeof(
OpenTypeMethods
).GetMethod("LessThan", BindingFlags.Static | BindingFlags.Public);
53
internal static readonly MethodInfo LessThanOrEqualMethodInfo = typeof(
OpenTypeMethods
).GetMethod("LessThanOrEqual", BindingFlags.Static | BindingFlags.Public);
56
internal static readonly MethodInfo ModuloMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Modulo", BindingFlags.Static | BindingFlags.Public);
59
internal static readonly MethodInfo MultiplyMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Multiply", BindingFlags.Static | BindingFlags.Public);
62
internal static readonly MethodInfo NegateMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Negate", BindingFlags.Static | BindingFlags.Public);
65
internal static readonly MethodInfo NotMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Not", BindingFlags.Static | BindingFlags.Public);
68
internal static readonly MethodInfo NotEqualMethodInfo = typeof(
OpenTypeMethods
).GetMethod("NotEqual", BindingFlags.Static | BindingFlags.Public);
71
internal static readonly MethodInfo OrElseMethodInfo = typeof(
OpenTypeMethods
).GetMethod("OrElse", BindingFlags.Static | BindingFlags.Public);
74
internal static readonly MethodInfo SubtractMethodInfo = typeof(
OpenTypeMethods
).GetMethod("Subtract", BindingFlags.Static | BindingFlags.Public);
77
internal static readonly MethodInfo TypeIsMethodInfo = typeof(
OpenTypeMethods
).GetMethod("TypeIs", BindingFlags.Static | BindingFlags.Public);
80
internal static readonly MethodInfo GetValueOpenPropertyMethodInfo = typeof(
OpenTypeMethods
).GetMethod(
548
OpenTypeMethods
.AndAlsoMethodInfo,
652
OpenTypeMethods
.OrElseMethodInfo,
System\Data\Services\Parsing\FunctionDescription.cs (3)
164
MethodInfo methodInfo = typeof(
OpenTypeMethods
).GetMethod(
367
return Expression.Call(null, callOpenTypeMethod ?
OpenTypeMethods
.TypeIsMethodInfo : DataServiceProviderMethods.TypeIsMethodInfo, arguments[0], arguments[1]);
433
return Expression.Call(null, callOpenTypeMethod ?
OpenTypeMethods
.ConvertMethodInfo : DataServiceProviderMethods.ConvertMethodInfo, arguments[0], arguments[1]);
System\Data\Services\Parsing\RequestQueryParser.cs (20)
360
expr =
OpenTypeMethods
.EqualExpression(expr, Expression.Constant(true, typeof(object)));
890
return
OpenTypeMethods
.EqualExpression(left, right);
909
return
OpenTypeMethods
.NotEqualExpression(left, right);
929
return
OpenTypeMethods
.GreaterThanExpression(left, right);
950
return
OpenTypeMethods
.GreaterThanOrEqualExpression(left, right);
971
return
OpenTypeMethods
.LessThanExpression(left, right);
992
return
OpenTypeMethods
.LessThanOrEqualExpression(left, right);
1091
return
OpenTypeMethods
.AddExpression(left, right);
1105
return
OpenTypeMethods
.SubtractExpression(left, right);
1119
return
OpenTypeMethods
.MultiplyExpression(left, right);
1132
return
OpenTypeMethods
.NegateExpression(expr);
1145
return
OpenTypeMethods
.NotExpression(expr);
1167
return
OpenTypeMethods
.DivideExpression(left, right);
1181
return
OpenTypeMethods
.ModuloExpression(left, right);
1195
return
OpenTypeMethods
.AndAlsoExpression(left, right);
1209
return
OpenTypeMethods
.OrElseExpression(left, right);
1237
return ((MethodCallExpression)input).Method.DeclaringType == typeof(
OpenTypeMethods
);
1241
return ((UnaryExpression)input).Method != null && ((UnaryExpression)input).Method.DeclaringType == typeof(
OpenTypeMethods
);
1256
return ((BinaryExpression)input).Method != null && ((BinaryExpression)input).Method.DeclaringType == typeof(
OpenTypeMethods
);
2113
Expression.Call(null /* instance */,
OpenTypeMethods
.GetValueOpenPropertyMethodInfo, instance, Expression.Constant(id));
System\Data\Services\Providers\BasicExpandProvider.cs (1)
1311
OpenTypeMethods
.GetValueOpenPropertyMethodInfo,
System\Data\Services\RequestUriProcessor.cs (1)
1161
Expression body = Expression.Call(null /* instance */,
OpenTypeMethods
.GetValueOpenPropertyMethodInfo, parameter, Expression.Constant(propertyName));