Skip to content

Parser issue - NullReferenceException #355

@konzen

Description

@konzen

When the type and property have the same name the parser takes the type instead of property.

Sample:

        public class Test
        {
            public int Id { get; set; }

            public string Value { get; set; }
        }

        public class Test2
        {
            public Test Test { get; set; }
        }

        .
        .
        .

        IQueryable<Test2> queryable = ...;
        var result = queryable.Where(parsingConfig, "Test.Id > 1");  // throw System.NullReferenceException

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions