projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* CodeExpressionCollection.cs: Fixed OutOfMemoryException when
[mono.git]
/
mcs
/
class
/
System
/
System.CodeDom
/
CodeStatementCollection.cs
diff --git
a/mcs/class/System/System.CodeDom/CodeStatementCollection.cs
b/mcs/class/System/System.CodeDom/CodeStatementCollection.cs
index f08df1b1e3b7d86fc7cc3eaf2bff0d09439591b6..11a41280641c9003b9ed6d3f4ab97eaee6abac24 100644
(file)
--- a/
mcs/class/System/System.CodeDom/CodeStatementCollection.cs
+++ b/
mcs/class/System/System.CodeDom/CodeStatementCollection.cs
@@
-99,7
+99,8
@@
namespace System.CodeDom
throw new ArgumentNullException ("value");
}
- for (int i = 0; i < value.Count; i++) {
+ int count = value.Count;
+ for (int i = 0; i < count; i++) {
Add (value[i]);
}
}