Fix .NET CodeValidation issue