projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d3defb
)
fixicate
author
Jb Evain
<jbevain@gmail.com>
Tue, 22 Jun 2010 12:22:03 +0000
(12:22 -0000)
committer
Jb Evain
<jbevain@gmail.com>
Tue, 22 Jun 2010 12:22:03 +0000
(12:22 -0000)
svn path=/trunk/mcs/; revision=159331
mcs/class/System.Core/System.Linq/QueryableEnumerable.cs
patch
|
blob
|
history
diff --git
a/mcs/class/System.Core/System.Linq/QueryableEnumerable.cs
b/mcs/class/System.Core/System.Linq/QueryableEnumerable.cs
index 2eb11c4a3164c1b0eee855457dfa57a9fe827ce4..8dfe62a3eac023c366ef090089d9cb802e51e70c 100644
(file)
--- a/
mcs/class/System.Core/System.Linq/QueryableEnumerable.cs
+++ b/
mcs/class/System.Core/System.Linq/QueryableEnumerable.cs
@@
-119,11
+119,14
@@
namespace System.Linq {
if (enumerable != null)
return enumerable.ToString ();
+ if (expression == null)
+ return base.ToString ();
+
var constant = expression as ConstantExpression;
- if (constant != null)
- return
constant
.ToString ();
+ if (constant != null
&& constant.Value == this
)
+ return
base
.ToString ();
- return
base
.ToString ();
+ return
expression
.ToString ();
}
}
}