More Related Content
More from Kiev ALT.NET (12)
Linq providers
- 7. source
.Provider
.Execute<int>(
Expression.Call(null,
((MethodInfo) MethodBase
.GetCurrentMethod())
.MakeGenericMethod(
new Type[] {
typeof(TSource) }),
new Expression[] {source.Expression }));
- 8. Source
.Provider
.CreateQuery<TSource>(
Expression.Call(
null,
((MethodInfo)
MethodBase
.GetCurrentMethod())
.MakeGenericMethod(
new Type[] { typeof(TSource) }),
new Expression[] {
source.Expression,
Expression.Quote(predicate) }));
- 14. //is it the same thing?
s1 == s2
s1.Equals(s2)
String.Equals(s1, s2)
String.Compare(s1, s2) == 0