Nested property methods not found when inheriting from List<T>
See original GitHub issueThis is strange but I noticed that calling nested properties work, but not nested methods.
// this works in the json rule
"expression": "input1.PropertyClass.MyProperty"
//this doesn't
"expression": "input1.PropertyClass.MyMethod('some string')"
This is the exception when trying to invoke nested methods:
“Exception while parsing expression input1.PropertyClass.MyMethod("hello") - No applicable aggregate method ‘MyMethod(String)’ exists”
How can I invoke nested methods from an expression?
Issue Analytics
- State:
- Created 9 months ago
- Comments:10
Top Results From Across the Web
JavaScript Object.create -- inheriting nested properties
create to create a new object - say 'anotherPerson' - which inherits the methods and properties from the initial 'person' object. If I...
Read more >Cascade, specificity, and inheritance - Learn web development
Though every CSS property page lists whether or not the property is inherited, you can often guess the same intuitively if you know...
Read more >Inheritance - Learning the Java Language
A subclass inherits all the members (fields, methods, and nested classes) from its superclass. Constructors are not members, so they are not inherited...
Read more >Type.GetNestedTypes Method (System)
This method returns only the nested types of the current type. It does not search the base classes of the current type. To...
Read more >Inheritance in C# and .NET
Private members are visible only in derived classes that are nested in their base class. Otherwise, they are not visible in derived classes....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @everettcomstock, this seems to be an issue with dynamic.linq.core library which is primarily used for expression parsing. I had dug deep into their implementation, and it seems they handle
IEnumerable
related classes separately.I still need to go through the example to see if there is any workaround and if there is a scope to support it. Although this is a corner case, I will let you know if there is an opportunity to support it.
I was hoping that someone can at least confirm whether this should work or not. I can’t find a similar example of this. I only see root properties and methods being called by RE in your documentation.