You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.
Hi there.
I've got a parser error when parsing this code:
` [TestMethod]
public void WhenParsingThisCodeReturnNoError()
{
const string sampleCode = @"
using System.Data;
namespace Test
{
public class TestClass
{
void TestMethod()
{
DataRow row = null;
}
}";
var parser = new ICSharpCode.NRefactory.CSharp.CSharpParser();
var syntaxTree = parser.Parse(sampleCode);
Assert.IsTrue(syntaxTree.Errors.Count == 0, "Parser error");
}`
If I remove the DataRowVersion, the parse is OK:
row[""AnyField""] = row.RowState == DataRowState.Deleted ?
row[""OtherField""] :
row[""SomeField""];
Thanks,
Wilsade
The text was updated successfully, but these errors were encountered: