Skip to content

The DynamicLinqType attribute can not be added to interfaces.  #745

@Magnus12

Description

@Magnus12

The DynamicLinqType attribute can not be added to interfaces.
If I have a field in a class that is of type interface:

private readonly IExternalMethod externalMethod;

Interface and implementation:

    public interface IExternalMethod 
    {
        int Run();
    }
    
    [DynamicLinqType]
    public class ExternalMethod : IExternalMethod
    {
        public int Run() => 1;
    }

Trying to run functions on that with dynamic linq does not work even in the implementing class of the interface has the DynamicLinqType attribute.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions