Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCS1231 triggered while it would break the method when the method uses LINQ Query syntax #902

Closed
StijnOttenVMT opened this issue May 25, 2022 · 0 comments

Comments

@StijnOttenVMT
Copy link

Product and Version Used:
4.10

Steps to Reproduce:
Create a method with DateTime as argument which is in turn used in a LINQ Query
Actual Behavior:

        public IQueryable<RandomObject> Function(DateTime start, DateTime end)// <-- RCS1231 
        {
            return
                from randomObject in _administrationContext.RandomObjects
                where randomObject.Start <= end
                    && randomObject.End >= start
                select randomObject;
        }

But LINQ doesn't support ref read-only in this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants