EditableNewArrayExpression.set_NodeType

Oct 1, 2007 at 5:20 AM
After looking at the following statements:

if (_nodeType == ExpressionType.NewArrayInit || _nodeType == ExpressionType.NewArrayBounds)
_nodeType = value;
else
throw new InvalidOperationException("NodeType for NewArrayExpression must be ExpressionType.NewArrayInit or ExpressionType.NewArrayBounds");

I think the IF comparison should be performed on value keyword, not _nodeType
Developer
Aug 11, 2008 at 9:18 PM
We have found this to be a bug and it will be fixed on the next release, along with other fixes made to the NewArrayExpression