diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2011-03-21 16:17:16 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2011-03-21 16:38:48 +0300 |
commit | 438681d9614bf597f8b74c4746bff9c21c794da4 (patch) | |
tree | 35515273ea499a634ad3c60472ce39410439e825 /mcs/class/dlr | |
parent | 215eda533339f930230b0097cc70620c35c1cb82 (diff) |
Use Type.EmptyTypes instead of new Type[0]
* mcs/class/corlib/System.Reflection/MonoGenericClass.cs:
* mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.Expressions.cs:
Use Type.EmptyTypes instead of new Type[0]
Diffstat (limited to 'mcs/class/dlr')
-rw-r--r-- | mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.Expressions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.Expressions.cs b/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.Expressions.cs index beb4125b576..70538606d7b 100644 --- a/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.Expressions.cs +++ b/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.Expressions.cs @@ -179,7 +179,7 @@ namespace System.Linq.Expressions.Compiler { expr = node.Expression; if (typeof(LambdaExpression).IsAssignableFrom(expr.Type)) { // if the invoke target is a lambda expression tree, first compile it into a delegate - expr = Expression.Call(expr, expr.Type.GetMethod("Compile", new Type[0])); + expr = Expression.Call(expr, expr.Type.GetMethod("Compile", Type.EmptyTypes)); } expr = Expression.Call(expr, expr.Type.GetMethod("Invoke"), node.Arguments); |