summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/MulticastDelegate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/MulticastDelegate.cs')
-rw-r--r--src/mscorlib/src/System/MulticastDelegate.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mscorlib/src/System/MulticastDelegate.cs b/src/mscorlib/src/System/MulticastDelegate.cs
index a7b244cdae..aa3271ceab 100644
--- a/src/mscorlib/src/System/MulticastDelegate.cs
+++ b/src/mscorlib/src/System/MulticastDelegate.cs
@@ -466,10 +466,9 @@ namespace System
{
// Create an array of delegate copies and each
// element into the array
- int invocationCount = (int)_invocationCount;
- del = new Delegate[invocationCount];
+ del = new Delegate[(int)_invocationCount];
- for (int i = 0; i < invocationCount; i++)
+ for (int i = 0; i < del.Length; i++)
del[i] = (Delegate)invocationList[i];
}
return del;