Skip to content

Commit dcb9416

Browse files
committed
More correct param name for NewArrayExpression
1 parent c3b95f3 commit dcb9416

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/NewArrayExpression.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2004-2021 Castle Project - http://www.castleproject.org/
1+
// Copyright 2004-2025 Castle Project - http://www.castleproject.org/
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -19,19 +19,19 @@ namespace Castle.DynamicProxy.Generators.Emitters.SimpleAST
1919

2020
internal class NewArrayExpression : IExpression
2121
{
22-
private readonly Type arrayType;
22+
private readonly Type elementType;
2323
private readonly int size;
2424

25-
public NewArrayExpression(int size, Type arrayType)
25+
public NewArrayExpression(int size, Type elementType)
2626
{
2727
this.size = size;
28-
this.arrayType = arrayType;
28+
this.elementType = elementType;
2929
}
3030

3131
public void Emit(ILGenerator gen)
3232
{
3333
gen.Emit(OpCodes.Ldc_I4, size);
34-
gen.Emit(OpCodes.Newarr, arrayType);
34+
gen.Emit(OpCodes.Newarr, elementType);
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)